the /etc/security/exec_attr
example:
Shutdown:suser:cmd ::: /usr/sbin/shutdown:uid=0
Update the the /etc/security/prof_attr file as follows
Example
Shutdown:::Allow users to run the shutdown command
roleadd -m -d /export/home/datuser2 -s /usr/bin/pfsh -P datuser2,All Shutdown
then set the passwd
passwd datuser2
give the user account right to the command
usermod -R shutdown datuser
.
Farah regal
good luck
"think twice and hit enter once"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.