The following table lists the commands that are available to handle privileges.
Table 12–1 Commands for Handling Privilege
Purpose |
Command |
Man Page |
---|---|---|
Examine process privileges |
ppriv -v pid | |
Set process privileges |
ppriv -s spec |
|
List the privileges on the system |
ppriv -l |
|
List a privilege and its description |
ppriv -lv priv |
|
Debug privilege failure |
ppriv -eD failed-operation |
|
Assign privileges to a new local user |
useradd | |
Add privileges to an existing local user |
usermod | |
Assign privileges to a user in a name service |
smuser | |
Assign privileges to a new local role |
roleadd | |
Add privileges to an existing local role |
rolemod | |
Assign privileges to a role in a name service |
smrole | |
View device policy |
getdevpolicy | |
Set device policy |
devfsadm | |
Update device policy on open devices |
update_drv -p policy driver | |
Add device policy to a device |
add_drv -p policy driver |
The Solaris Management Console GUI is the preferred tool for assigning privileges to commands, users, and roles. For more information, see How to Assume a Role in the Solaris Management Console.