Details:
By default, a newly created volume will only have permissions 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 permissions 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 permissions on the volume are restored to what they were before, root.
In order to permanently change the permissions, a VERITAS Volume Manager command is needed to change the permission records within the disk group configuration:
vxedit set user=username group=groupname mode=xxxx volumename
Here is an example:
/dev/vx/dsk/testdg# 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 permissions even after the system reboots.
Group Permissions on a Volume
Here is the list of the current permissions on the volumes in testdg for a test system:
# cd /dev/vx/dsk/testdg
# ls -al
total 4
drwxr-xr-x 2 root root 512 Apr 9 13:20 .
drwxr-xr-x 4 root root 512 Apr 6 14:46 ..
brw------- 1 root root 137,10002 Apr 9 13:20 pedvol
brw-r--r-- 1 root root 137,10001 Apr 3 08:31 testvol
brw------- 1 root root 137,10000 Apr 3 08:21 vol01
To change the group that owns the volume:
# vxedit -g testdg set group=other testvol
The results are shown below:
# ls -al
total 4
drwxr-xr-x 2 root root 512 Apr 9 13:20 .
drwxr-xr-x 4 root root 512 Apr 6 14:46 ..
brw------- 1 root root 137,10002 Apr 9 13:20 pedvol
brw-r--r-- 1 root other 137,10001 Apr 3 08:31 testvol
brw------- 1 root root 137,10000 Apr 3 08:21 vol01
The group permission was changed from root to other.


