The commands discussed in Getting Information About Software Packages do not require any special privilege to use. Tasks such as installing IPS packages, upgrading your operating system, and configuring publisher and image properties require more privilege. Use one of the following methods to gain the privilege you need. See Securing Users and Processes in Oracle Solaris 11.4 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. For example, if the role is assigned the Software Installation rights profile, you can execute the pkg and beadm commands to install and update packages and manage boot environments.
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.
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.