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.
Practice questions
What access is required to recover a lost root password on a standard Junos router?
- Console access to the device
- SSH access as any user
- J-Web access as an operator
- 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.
Which actions are part of the recovery procedure after booting into single-user mode?
- Typing recovery at the prompt
- Entering configure and setting a new root password
- Running commit to save the new password
- Connecting over SSH to finish the change
- 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: 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.
