How to change user and group properties within the disk groups
book
Article ID: 100006455
calendar_today
Updated On:
Resolution
To provide optimal security to different types of volumes by changing the user and group properties, run the following:
vxedit [-dfGpPrsvV ] [-e pattern] [-g diskgroup] cc /search/replace/ [gp] [name...]
1. Verify the current user and group id, using the following command:
# vxprint -htmg
For rootdisk7vol, for instance under rootdg disk group, the following output will show;
vol rootdisk7vol
tutil0="
tutil1="
tutil2="
kstate=ENABLED
r_all=GEN_DET_SPARSE
r_some=GEN_DET_SPARSE
w_all=GEN_DET_SPARSE
w_some=GEN_DET_SPARSE
lasterr=0
use_type=gen
fstype="
comment="
putil0="
putil1="
putil2="
state="ACTIVE
writeback=on
writecopy=off
specify_writecopy=off
logging=off
has_logs=off
devopen=off
move=off
log_serial_lo=0
log_serial_hi=0
node_bdev=216/6
node_cdev=216/6
iosize=512
pl_num=1
pref_name=
start_opts="
read_pol=ROUND
current_read_pol=ROUND
minor=6
user=root
group=root
mode=0600
log_type=REGION
2. Modify the user and group ID, using the following command:
# vxedit -g set user="" group=""
For instance, to change the owner for rootdisk7vol to "admin" in rootdg disk group, use the following command:
# vxedit -g rootdg set user=admin group=admin rootdisk7vol
3. To verify your work use the following steps from step 1:
# vxprint -htmg
vol rootdisk7vol
tutil0="
tutil1="
tutil2="
kstate=ENABLED
r_all=GEN_DET_SPARSE
r_some=GEN_DET_SPARSE
w_all=GEN_DET_SPARSE
w_some=GEN_DET_SPARSE
lasterr=0
use_type=gen
fstype="
comment="
putil0="
putil1="
putil2="
state="ACTIVE
writeback=on
writecopy=off
specify_writecopy=off
logging=off
has_logs=off
devopen=off
move=off
log_serial_lo=0
log_serial_hi=0
node_bdev=216/6
node_cdev=216/6
iosize=512
pl_num=1
pref_name=
start_opts="
read_pol=ROUND
current_read_pol=ROUND
minor=6
user=admin
group=admin
mode=0600
log_type=REGION
Refer to the VERITAS Volume Manager (tm) man pages for other options within the "vxedit" utility.
Issue/Introduction
How to change user and group properties within the disk groups
Was this article helpful?
thumb_up
Yes
thumb_down
No