Use one of the following methods to gain the privilege you need to create and configure package repositories. See Securing Users and Processes in Oracle Solaris 11.2 for more information about profiles and roles, including how to determine which profile or role you need.
Use the profiles command to list the rights profiles that are assigned to you. The following profiles are useful for maintaining local package repositories:
This rights profile enables you to run the zfs command.
This rights profile enables you to run the pkg command.
This rights profile enables you to run SMF commands such as svccfg.
Use the roles command to list the roles that are assigned to you. If you have the root role, you can use the su command with the root password to assume the root role.
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.