|
|
Use adminrole with the -n and -a options to add commands and privileges to a new role.
To add commands and privileges to a new role, perform the following:
Each entry is a command and privilege entry, as specified in adminrole(1M).
# adminrole assistant
UX:adminrole:WARNING:undefined role name "assistant"
# adminrole -n -a mount:/etc/mount:mount,umount:/etc/umount:mount assistant
# adminrole assistant
assistant: mount:/etc/mount mount
umount:/etc/umount mount
#
Adding commands and privileges for a new role
The first adminrole displays any TFM database entries for the role assistant. In this case the role does not exist. The next adminrole creates the new role assistant; the -n option shows this is a definition of a new role. If role assistant already exists in the TFM database omit the -n option. As with the adminuser command, the initial mount and umount are the command aliases used with the tfadmin command, /etc/mount and /etc/umount are the paths for the executables, and the final mount for each definition specifies the mount privilege that should be granted when running these commands.