Go to main content

Managing System Services in Oracle® Solaris 11.3

Exit Print View

Updated: March 2017
 
 

Service Management Privileges

Modifying service state and configuration requires increased privilege. Use one of the following methods to gain the privilege you need. See Securing Users and Processes in Oracle Solaris 11.3 for more information about roles, profiles, and authorizations, including how to determine which role or profile you need and how to assign privileges.

Roles

Use the roles command to list the roles that are assigned to you. Use the su command with the name of the role to assume that role. As this role, you can execute any commands that are permitted by the rights profiles that are assigned to that role. For example, if the role is assigned the Service Configuration rights profile, you can execute the svccfg and svcadm commands modify service properties and change service state.

Rights profiles

Use the profiles command to list the rights profiles that are assigned to you. Use one of the following methods to execute commands that your rights profiles permit you to execute:

  • Use a profile shell such as pfbash or pfksh.

  • Use the pfexec command in front of the command that you want to execute. In general, you must specify the pfexec command with each privileged command that you execute.

Authorizations

See the smf_security(7) man page for detailed information about authorizations required for SMF operations. You can also inspect a particular service for properties such as action_authorization, modify_authorization, read_authorization, and value_authorization. Individual services can require their own particular authorizations.

sudo command

Depending on the security policy at your site, you might be able to use the sudo command with your user password to execute a privileged command.