Many of the commands used with automated installation require increased privilege. Use one of the following methods to gain more privilege:
Use the profiles command to list the rights profiles that are assigned to you.
If you have the Software Installation rights profile, you can use the pfexec command to install and update packages.
$ pfexec pkg install install/installadm
If you have the Install Service Management rights profile, you can use the pfexec command to create install services and add system configuration profiles to an install service, for example.
$ pfexec installadm create-service
If you have the Service Management rights profile, you can configure and enable SMF services. The Service Management rights profile does not need pfexec.
$ svcadm refresh system/install/server:default
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.
$ sudo pkg install install/installadm
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.