Veritas: Setting Persistent Volume Permissions

By default, a newly created volume will only have

for the root user only, i.e below is a ‘test’ volume under disk group testdg:

/dev/vx/dsk/testdg# ls -l
total 0
brw------- 1 root root 79,76000 Jun 9 14:33 test

The on the volume can be changed by using the chmod command:

/dev/vx/dsk/testdg# chmod 777 test
/dev/vx/dsk/testdg# ls -l
total 0
brwxrwxrwx 1 root root 79,76000 Jun 9 14:33 test

However, because chmod is an OS command, after the system reboots, the on the volume are restored to what they were before, root.

In order to permanently change the , a VERITAS Volume Manager command is needed to change the permission records within the disk group configuration:

vxedit set user=username group=groupname mode=**** volumename

Here is an example:

# ls -l
total 0
brw------- 1 root root 79,76000 Jun 9 14:33 test
/dev/vx/dsk/testdg# vxedit set mode=777 test
/dev/vx/dsk/testdg# ls -l
total 0
brwxrwxrwx 1 root root 79,76000 Jun 9 14:33 test

This will allow the volume to retain its even after the system reboots.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


seven + 5 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>