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.3 for more information about roles and profiles, including how to determine which role or profile you need.
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.
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 to create new ZFS file systems.
This rights profile enables you to run the pkg command to install and update packages, configure publishers and images, and manage boot environments.
This rights profile enables you to run SMF commands such as svccfg to configure services.
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.
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.