Bitzu

JN0-106 ยท Monitoring and maintenance

Root password recovery

Booting into single-user mode, running recovery, setting a new root password and committing, plus the console access requirement.

Key points

  • You need console access.
  • Reboot, press the Spacebar at the boot prompt to reach the loader, enter boot -s for single-user mode.
  • At the next prompt type recovery, then configure.
  • Set the new root password (plain text, entered twice) and commit.
  • Exit configuration and operational mode, reboot with y.
  • Console port set to insecure: no recovery, single-user mode asks for the root password.

Source: https://www.juniper.net/documentation/us/en/software/junos/user-access/topics/topic-map/recovering-root-password.html

Practice questions

Single choice

What access is required to recover a lost root password on a standard Junos router?

  1. Console access to the device
  2. SSH access as any user
  3. J-Web access as an operator
  4. A telnet session to the management address
Show answer

Answer: A. Console access to the device

The procedure interrupts the boot sequence, so it needs the console port. SSH and J-Web need a working login, and a remote reboot would not let you reach the loader.

Select all that apply

Which actions are part of the recovery procedure after booting into single-user mode?

  1. Typing recovery at the prompt
  2. Entering configure and setting a new root password
  3. Running commit to save the new password
  4. Connecting over SSH to finish the change
  5. Using telnet to reach the single-user shell
Show answer

Answer: A. Typing recovery at the prompt, B. Entering configure and setting a new root password, C. Running commit to save the new password

You type recovery, enter configuration mode to set a new root password, and commit. Remote SSH and telnet cannot be used because the procedure is console-only.

True or false

True or false: root password recovery still works when the console port has been configured as insecure.

Show answer

Answer: False

False. With an insecure console, single-user mode asks for the root password and CLI recovery mode is not allowed, so the procedure fails.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More JN0-106 topics in this module