Sun N1 System Manager 1.2 Administration Guide

ProcedureTo Set a User's Default Role

Users are automatically logged in to the N1 System Manager with their default role.


Note –

The default role for the root user is automatically set to Admin after you reboot the management server or if you restart the N1 System Manager. It is still possible to set the root user's default role to a different role, but this is not a permanent assignment.


Steps
  1. Log in to the N1 System Manager.

    See To Access the N1 System Manager Command Line for details.

  2. Show which roles are added to the user.


    N1-ok> show user user
    

    You must have the SecurityAdmin role's privileges to run this command. See show user in Sun N1 System Manager 1.2 Command Line Reference Manual for details.

  3. Set a user's default role.


    N1-ok> set user user defaultrole defaultrole
    

    See set user in Sun N1 System Manager 1.2 Command Line Reference Manual for details.


Example 1–2 Setting a User's Default Role

The following example shows setting the SecurityAdmin role as the default role for the root user.


N1-ok> show user root

Name:         root
Default Role: Admin
Roles:        SecurityAdmin, ReadOnly, Admin


N1-ok> set user root defaultrole SecurityAdmin