addpriv - add a privilege to the system administration privilege database
/usr/sysadm/bin/addpriv [ -auth auth-scheme ] user privilege [ privilege
/usr/sysadm/bin/addpriv [ -auth auth-scheme ] -chkconfig
addpriv adds an entry to the privilege(4) database, so that henceforth
user is granted privilege. This means that runpriv would run the command
privilege in the directory /usr/sysadm/privbin on user's behalf.
Multiple privileges can be passed to one addpriv command. An entry is
added for each privilege specified.
To see the privileges associated with individual tasks, choose "View as
Tasks" from the Privilege Manager menu. See privmgr(1M).
The -chkconfig option is used to enable privileges on the system.
addpriv -chkconfig runs the command chkconfig privileges on.
In order to run addpriv, you must either be running as root or you must
provide the -auth auth-scheme arguments and pass the authentication test.
If auth-scheme is unix, then must you type the root password when
prompted in order to pass.
The ability to run addpriv is not itself a privilege. root cannot give
other users the ability to add or remove privileges.
addpriv will print and log a warning if a privilege is added for an NIS
user account because it enables the administrator of the NIS server to
use privileges on this workstation by changing the password of a user
account that has privileges.
/var/sysadm/privilege Privilege database
/etc/config/privileges Privilege configuration flag
sysmgr(1M), chkconfig(1M), runpriv(1M), checkpriv(1M), rmpriv(1M),
adddefpriv(1m), rmdefpriv(1m), addprivuser(1M), rmprivuser(1M),
privmgr(1M), privilege(4), defaultPrivileges(4), privilegedUsers(4).
PPPPaaaaggggeeee 1111 [ Back ]