[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


Configuring a User Account

This sample procedure describes how to use the CLI to view system status and to perform a simple configuration change. You configure a new user account, one for your own use or a test account.

To configure a user account on the system:

  1. Log in as user with superuser privileges, start the CLI, and enter configuration mode.
  2. user@host> configure
    
    [edit]
    
    user@host#
    
    
    

The prompt in brackets ([edit]), also known as a banner, shows that you are in configuration edit mode, at the top of the hierarchy.

  1. Move to the [edit system login] level of the configuration hierarchy.
  2. [edit]
    
    user@host# edit system login 
    
    
    
    [edit system login]
    
    user@host# 
    
    
    

The prompt in brackets changes to [edit system login] to show you are at a new level in the hierarchy.

  1. Add a new user account.
  2. [edit system login]
    
    user@host# edit user nchen
    
    
    

This example adds an account nchen (for Nathan Chen), but you can use any account name.

  1. Configure a full name for the account. If the name includes spaces, enclose the entire name in quotation marks (" ").
  2. [edit system login user nchen]
    
    user@host# set full-name "Nathan Chen" 
    
    
    
  3. Configure an account class. The account class sets the user access privileges for the account.
  4. [edit system login user nchen]
    
    user@host# set class super-user 
    
    
    
  5. Configure an authentication method and password for the account.
  6. [edit system login user nchen]
    
    user@host# set authentication plain-text-password 
    
    New password: 
    
    Retype new password:
    
    
    

When the new password prompt appears, enter a clear-text password that the system will encrypt, and then confirm the new password.

  1. Commit the configuration.
  2. [edit system login user nchen]
    
    user@host# commit 
    
    commit complete
    
    
    

Configuration changes are not activated until you commit the configuration. If the commit is successful, a commit complete message appears.

  1. Return to the top level of the configuration, and then exit.
  2. [edit system login user nchen]
    
    user@host# top 
    
    
    
    [edit]
    
    user@host# exit 
    
    Exiting configuration mode
    
    
    
  3. Log out of the SRC software.
  4. user@host> exit 
    
    [user@host]#
    
    
    
  5. To test your changes, log back in with the user account and password that you just configured.
  6. --- SRC CLI 7.0 build CLI.A.7.0.0.0171
    
    (c) 2005-2006 Juniper Networks Inc.
    
    nchen@host> 
    
    
    

When you log in, the new username appears at the command prompt.


[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]