Skip Navigation Links | |
Exit Print View | |
Getting Started With Oracle Solaris 11 Express Oracle Solaris 11 Express 11/10 |
1. Exploring Oracle Solaris 11 Express
2. Preparing to Install Oracle Solaris 11 Express
3. Installing Oracle Solaris 11 Express
4. Verifying and Finalizing Your Installed System
5. Understanding Users and Roles
User Accounts, Roles, and Rights Profiles
7. Setting Up Your Application Development Environment
8. Keeping Your System Up-To-Date
A. Managing the GRUB Menu in the Oracle Solaris Release
Roles can be assigned to users only.
To determine which roles are assigned to your user account, open a terminal window and type:
$ roles root
To assign an existing role to a user, use the usermod command.
# usermod -R zfssnap username
To create and assign a role to a user, use the roleadd command to create the role, and the usermod command to assign the role to a user.
To create a role, use either of the following two methods:
# roleadd -K profiles="System Administrator" sysadmin
# roleadd sysadmin # rolemod -P "System Administrator" sysadmin
To assign the role:
# usermod -R zfssnap,sysadmin username
For more informations, see Chapter 8, Using Roles and Privileges (Overview), in System Administration Guide: Security Services.