Sun N1 System Manager 1.3 Discovery and Administration Guide

ProcedureTo Set a User's Default Role (Normal Configuration)

This task is based on the normal configuration of the N1 System Manager, where the management server has access to both the provisioning and management networks.

Users are automatically logged in to the N1 System Manager with their assigned user default role. The user default role can be a custom role that has been assigned as a default role to the user, and does not have to be a system default role. System default roles are shown in Table 2–3.


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. You can still set the root user's default role to a different role, but the assignment is not permanent.


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.3 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.3 Command Line Reference Manual for details.

    If the N1 System Manager is running in normal configuration with access to both the provisioning and management networks, you can assign the Admin role as the default role for all users. Alternatively, you can create a custom role with the same privileges.

    If the N1 System Manager is running in normal configuration with access to both the provisioning and management networks, any custom role you create for users must have the privileges necessary for full functionality of the N1 System Manager.


Example 2–2 Setting a User's Default Role

The following example shows how to set 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