Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Example: Configuring the Root Password

Junos OS is preinstalled on the router. When the router is powered on, it is ready to be configured. Initially, you log in as the user “root” with no password. The root directory of a UNIX device is the entry point to all other folders and files on that device. As a result, access to the root directory is restricted by default to a predefined user account known as the root user. The root user (also referred to as superuser) has unrestricted access and full permissions within the system. The expression “log in as root” is commonly used when an action requires the user to log into the device as the root user.

To set the root password, you have several options: enter a clear-text password that the system will encrypt, enter a password that is already encrypted, or enter a secure shell (ssh) public key string.

To set the root password, follow these steps:

  1. To enter a clear-text password that the system will encrypt, use the following command to set the root password:
    [edit]root@# set system root-authentication plain-text-password New Password: type password hereRetype new password: retype password here
  2. To enter a password that is already encrypted, use the following command to set the root password:
    [edit]root@# set system root-authentication encrypted-password password
  3. To enter an ssh public string, use the following command to set the root password:
    [edit]root@# set system root-authentication ssh-rsa key
  4. Commit the changes:
    [edit]root@# commit
  5. Exit from configuration mode:
    [edit]root@# exitroot@>

Published: 2014-03-26

Published: 2014-03-26