|
|
How do I use tfadmin, adminuser, and adminrole, instead of su? |
To use privileges instead of su, we do the following: A) Create a group of commands that a user needs, called a role,
with the adminrole command
B) Assign a user or users to that role with adminuser.
C) Then they can execute the commands using tfadmin.
Script started on Mon Oct 25 20:56:10 1999
# id | awk '{ print $1 " " $2 }'
UID=0(root) GID=3(sys)
#
# /bin/adminrole -n SCRAM
# /bin/adminrole -a kill:/bin/kill:allprivs SCRAM
# /bin/adminrole -a shutdown:/sbin/shutdown:allprivs SCRAM
# /bin/adminuser -n -o SCRAM yurtle
#
# ^D
That's all there is to it. Yurtle can kill and shutdown now, as long as initprivs returns nothing and they type their command like:
<mschalit@pacbell.net>
| |
| [Append to This Answer] |
| Previous: |
|
| Next: |
|
| ||||||||