JunOS : How to reset root password

By | December 12, 2014

The following procedure is about reseting root password and preserve the current configuration on your Juniper device running JunOS.

1. As soon you see “Hit [Enter] to boot immediately, or space bar for command prompt.” message, just press the space bar as indicated :

FreeBSD/PowerPC U-Boot bootstrap loader, Revision 2.1
(marcelm@apg-bbuild01.juniper.net, Wed Feb 6 11:23:55 PST 2008)
Memory: 1024MB
Loading /boot/defaults/loader.conf
/kernel data=0x8d8e8c+0x947cc syms=[0x4+0x7a1a0+0x4+0xad2a2]
Hit [Enter] to boot immediately, or space bar for command prompt.
Booting [/kernel] in 1 second…

Type ‘?’ for a list of commands, ‘help’ for more detailed help.

2. At the prompt, enter “boot -s” command :


3. Enter in configuration mode using “configure” command :

4. Enter command “set system root-authentication plain-text-password” to set a new JunOS root password :

5. Commit the changes :

6. Exit the configuration and exec modes and reboot the system as followed :