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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i set up a role on Solaris?

Status
Not open for further replies.

stephy

Programmer
Jan 28, 2002
1
US
How do i set up a role on Solaris? This is one of the questions asked on the exam (that i did not answer correctly might I add)

Thanks
 
hi

first of all, add the following the end of

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"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top