This article describes a procedure to recover the root password for SRX Branch devices running on Junos release versions 10.0R1, 10.0R2, and 10.1R1 when they fail to reach the point where the root password can be changed, or the Junos root-password recovery procedure does not work.
The information in this article applies to the following Junos platforms:
KB15725 [juniper.net] describes the root password recovery method for Junos platforms. However, on SRX Branch platforms and Junos 10.0R1, 10.0R2, and 10.1R1, there is a condition in which the password recovery process does not work. After issuing recovery command, the system never reaches the point where the root password can be changed; instead, the system reboots.
To resolve the issue, use the following procedure to recover the root password for SRX Branch devices running on Junos release versions 10.0R1, 10.0R2, and 10.1R1. This involves disabling watchdog functionality to allow the system to properly boot into single-user mode.
Hit [Enter] to boot immediately, or space bar for command prompt. Booting [kernel] in 9 seconds... Loader> Loader> watchdog disable Loader> boot –s
Hit [Enter] to boot immediately, or space bar for command prompt. Booting [kernel] in 9 seconds...
Loader> Loader> watchdog disable Loader> boot –s
recovery
System watchdog timer disabled Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh: recovery
System watchdog timer disabled Enter full pathname of shell or 'recovery' for root password recovery or RETURN for /bin/sh:
Starting CLI ... root@host> edit
root@host# set system root-authentication plain-text-password
root@host#
set system root-authentication plain-text-password
New password: juniper1 Retype new password: juniper1
root@host# commit commit complete
root@host# run request system reboot Reboot the system ? [yes,no] (no) yes The boot messages display on the console.
root@host# run request system reboot Reboot the system ? [yes,no] (no) yes
Hit [Enter] to boot immediately, or space bar for command prompt. Booting [kernel] in 9 seconds... Loader> Loader> watchdog enable Loader> boot
Loader> Loader> watchdog enable Loader>
boot
Wed Jun 16 14:20:21 UTC 2010 Amnesiac (ttyu0) login: root Password: juniper1
Wed Jun 16 14:20:21 UTC 2010 Amnesiac (ttyu0) login: root Password:
juniper1
For more information, refer to PR499745 .
2019-08-28: Article reviewed for accuracy. Only applicable on the specific versions