This topic describes how to log on to a JUNOS device using a root account and configure a new user account. You can configure an account for your own use or create a test account.
To configure a user account on the device:
- root@host> configure
- [edit]
- root@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.
- [edit]
- root@host# edit system login
- [edit system login]
- root@host#
The prompt in brackets changes to [edit system login] to show you are at a new level in the hierarchy.
- [edit system login]
- root@host# edit user nchen
This example adds an account nchen (for Nathan Chen), but you can use any account name.
- [edit system login user nchen]
- root@host# set full-name "Nathan Chen"
- [edit system login user nchen]
- root@host# set class super-user
- [edit system login user nchen
- root@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.
- [edit system login user nchen]
- root@host# commit
- commit complete
Configuration changes are not activated until you commit the configuration. If the commit is successful, a commit complete message appears.
- [edit system login user nchen]
- root@host# top
- [edit]
- root@host# exit
- Exiting configuration mode
- root@host> exit
- % logout Connection closed.
- login: nchen
- Password: password
- --- JUNOS 8.3-R1.1 built 2005-12-15 22:42:19 UTC
- nchen@host>
When you log in, you should see the new username at the command prompt.
Congratulations! You have successfully used the CLI to view the device status and perform a simple configuration change. Now you are ready to learn more about the CLI. See the related topics listed in this section for more information about the JUNOS CLI features.
Alternatively, you can follow the instructions in Configuring a Routing Protocol to create a more extensive configuration.
![]() |
Note: For complete information about the commands to issue to configure your device, including examples, see the JUNOS software configuration guides. |