For more information about using roles, see Assigning Rights to Users in Securing Users and Processes in Oracle Solaris 11.2 .
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .
The following example adds two existing rights profiles to a new profile.
# profiles -p new-profile profiles:new-profile> set desc="description" profiles:new-profile> add profiles="Unified Archive Administration" profiles:new-profile> add profiles="Zone Security" profiles:new-profile> commit; end; exit
In this step we also set a password for the new role.
# roleadd -c "comment" -m -K profiles"new-profile" new-role # passwd new-role Password: xxxxxxxx Confirm password: xxxxxxxx
# usermod -R +new-role user