Installation Privileges
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.
- Roles
-
Use the
rolescommand to list the roles that are assigned to you. Use thesucommand 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 thepkgandbeadmcommands to install and update packages and manage boot environments. - Rights profiles
-
Use the
profilescommand 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
pfbashorpfksh. -
Use the
pfexeccommand in front of the command that you want to execute. In general, you must specify thepfexeccommand with each privileged command that you execute.
-
- sudo command
-
Depending on the security policy at your site, you might be able to use the
sudocommand with your user password to execute a privileged command.