Support Support Downloads Knowledge Base Service Request Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EX] How to add a new user on the EX switching platform via CLI

0

0

Article ID: KB10902 KB Last Updated: 13 Feb 2020Version: 6.0
Summary:

The Junos OS software allows you to add, manage, and authenticate users. This article gives the steps to add new users on the EX switching platform via the Command Line Interface (CLI).

 

Solution:

The steps listed below describe how to log in with a root account and configure a new user account.

To configure a user account on the switch:

  1. Log in to the switch as an existing user or as the default user (root with no password). Enter configuration mode:  
root@switch> configure
[edit]
root@switch# 

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. Change to the [edit system login] section of the configuration:    
[edit]
root@host# edit system login
[edit system login]
root@switch#  

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

  1. Now add a new user account:
[edit system login]
root@switch# edit user michael  

This example adds an account "michael," 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 ( " " ): 
[edit system login user michael]
root@switch# set full-name "Michael Mike" 
  1. Configure an account class. The account class sets the user access privileges for the account. 
[edit system login user michael]
root@switch# set class super-user

The following access privileges are available for the account:

operator        permissions [ clear network reset trace view ]
read-only       permissions [ view ]
super-user      permissions [ all ]
unauthorized    permissions [ none ]
  1. Configure an authentication method and password for the account: 
[edit system login user michael]
root@switch# 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:
[edit system login user michael]
root@switch# 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:  
[edit system login user michael]
root@switch# top
[edit]
root@switch# exit
Exiting configuration mode
  1. Log out of the switch:
root@switch> exit
% logout Connection closed.
  1. To test your changes, log back in with the user account and password that you just configured: 
login: michael
Password: <password>
--- JUNOS 9.0-R1.1 built 2008-01-15 22:42:19 UTC
michael@switch>

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

 

Modification History:

2020-02-13: Article reviewed for accuracy; no changes required

 

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Security Alerts and Vulnerabilities

Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search