Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Special User Account

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi there!
I use AIX 4.3.3.
I have several volume groups on my system.
Is it possible to create a user account that will have priviledges to
create/delete logical volumes and filesystems on one of those volume
groups?
i.e. I have vg1 , vg2 and I want a user who can create logical volumes
on vg2 only.
Thnx in advance
 
Hi,

Normally you can restrict the user to create a mountpoint for the FS,by protecting the top dir where the mountpoint may be.

Preventing user from creating LV's - that's something different. "Long live king Moshiach !"
h
 
Sounds like a use for sudo.

---------------------------
[tt]usermklv.sh:
#!/bin/ksh
sudo usermklv.real.sh[/tt]
---------------------------
[tt]usermklv.real.sh:
#!/bin/ksh
ROOTVG=`echo ${*} | grep rootvg | wc -l`
VG1=`echo ${*} | grep vg1 | wc -l`
VG2=`echo ${*} | grep vg2 | wc -l`

if test ${ROOTVG} -gt 0
then
echo "You are not allowed to create LVs in rootvg."
exit
fi

if test ${VG1} -gt 0
then
echo "You are not allowed to create LVs in vg1."
exit
fi

if test ${VG2} -gt 0
then
mklv ${*}
fi[/tt]
 
Can ACLs be used on the Volume Group device file to allow that?
I hope it works...
Unix was made by and for smart people.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top