Sun N1 System Manager 1.3 Discovery and Administration Guide

ProcedureTo Add an N1 System Manager User

Before You Begin

You must be superuser (root) to add a new user account to the management server's operating system. The rest of the task must be performed by a user with the SecurityAdmin role, such as the superuser account used in this task.

When you create a new user for the N1 System Manager, you can also configure the user's login shell to be either a UNIX® shell or the n1sh shell. If the user's login is configured with the n1sh shell, the user automatically logs into the n1sh shell (N1–ok> prompt) when logging in to the management server.

Steps
  1. Log in to the management server as superuser from a remote system.


    $ ssh -l root management-server
    

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

  2. Add a new user account to the management server using the useradd command.

    Provide the following configuration details:

    • Use the useradd -s option to configure the user's shell to automatically log into the n1sh shell. For example: useradd -s /opt/sun/n1gc/bin/n1sh

    • Use the passwd command to set the user's password.

    • Add /opt/sun/n1gc/bin to the user's path in order to access the n1sh command.

    See the management server's useradd man page for more information.

  3. Add the user to the N1 System Manager with one or more roles.


    # n1sh -r SecurityAdmin create user user role role[,role...]

    The -r option enables you to run the n1sh command with the SecurityAdmin role, which is required for this step. See create user in Sun N1 System Manager 1.3 Command Line Reference Manual for details. You can also use the add user command to later add more roles.