[j-nsp] M20 password recovery procedure

Larry Stites ncnet at sbcglobal.net
Sat Jan 30 18:17:50 EST 2010


Thank you for the replies ­ we have changed our passwords.


on 1/30/10 5:13 AM, mohamed attia wrote:

> 
> 
> Recovering the Root Password
> 
> If you forget the root password for the router, you can use the password
> recovery procedure to reset the root password.
> Note: You need console access to recover the root password.
> To recover the root password:
> 1.      Power off the router by pressing the power button on the front panel.
> 2.      Turn off the power to the management device, such as a PC or laptop
> computer, that you want to use to access the CLI.
> 3.      Plug one end of the Ethernet rollover cable supplied with the router
> into the RJ-45­to­DB-9 serial port adapter supplied with the router.
> 4.      Plug the RJ-45­to­DB-9 serial port adapter into the serial port on the
> management device.
> 5.      Connect the other end of the Ethernet rollover cable to the console
> port on the router.
> 6.      Turn on the power to the management device.
> 7.      On the management device, start your asynchronous terminal emulation
> application (such as Microsoft Windows Hyperterminal) and select the
> appropriate COM port to use (for example, COM1).
> 8.      Configure the port settings as follows:
> o    Bits per second: 9600
> o    Data bits: 8
> o    Parity: None
> o    Stop bits: 1
> o    Flow control: None
> 9.      Power on the router by pressing the power button on the front panel.
> Verify that the POWER LED on the front panel turns green.
> The terminal emulation screen on your management device displays the router¹s
> boot sequence. 
> 10.  When the following prompt appears, press the Spacebar to access the
> router¹s bootstrap loader command prompt:
> 1. Hit [Enter] to boot immediately, or space bar for command prompt.
> 2. Booting [kernel] in 9 seconds...
> 13.  At the following prompt, enter boot -s to start up the system in
> single-user mode.
>  
> ok boot -s
> 14.  At the following prompt, enter recovery to start the root password
> recovery procedure.
>  
> Enter full pathname of shell or 'recovery' for root password recovery or
> RETURN for /bin/sh: recovery
> 15.  Enter configuration mode in the CLI.
>  
> 16.  Set the root password. For example:
>  
> user at host# set system root-authentication plain-text-password
> 17.  At the following prompt, enter the new root password. For example:
>  
> New password: juniper1
> Retype new password:
> 18.  At the second prompt, reenter the new root password.
> 19.  After you have finished configuring the password, commit the
> configuration. 
>  
> root at host# commit
> commit complete
> 20.  Exit configuration mode in the CLI.
> 21.  Exit operational mode in the CLI.
> 22.  At the prompt, enter y to reboot the router.
>  
> Reboot the system? [y/n] y
>  
> http://www.juniper.net/techpubs/en_US/junos10.0/information-products/topic-col
> lections/config-guide-system-basics/authentication-root-password-recovering.ht
> ml 
> <http://www.juniper.net/techpubs/en_US/junos10.0/information-products/topic-co
> llections/config-guide-system-basics/authentication-root-password-recovering.h
> tml> 
> http://www.juniper.net/techpubs/en_US/junos9.0/topics/task/troubleshooting/ex-
> series-root-password-recovery.html
> <http://www.juniper.net/techpubs/en_US/junos9.0/topics/task/troubleshooting/ex
> -series-root-password-recovery.html>
> 
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> 
> Best Regards,
> 
> -----------------------------------
> Eng. : Mohamed Attia
> 
> +2 0102039799
> 
>  
>  
> 
> 
> 
>  
>> > Date: Thu, 28 Jan 2010 12:36:46 -0800
>> > From: ncnet at sbcglobal.net
>> > To: juniper-nsp at puck.nether.net
>> > Subject: [j-nsp] M20 password recovery procedure
>> > 
>> > 
>> > M20 running Junos5.7 and we've attempted to follow
>> > the password recovery procedure from single user but are getting disk
>> > read errors when invoking /usr/libexec/ui/recovery-mode; the fsck to
>> > repair these eventually fails.
>> > 
>> > The issue is that `/usr/libexec/ui/recovery-mode` needs to run fsck, the
>> > fsck fails, and the CLI from which you can set the root password is never
>> > invoked. We're attempting to unpack and edit the configuration files
>> > directly because password data is not handled in the traditional UNIX way.
>> > Ie., there is no `passwd` command or /etc/passwd & /etc/shadow
>> > 
>> > Please advise.
>> > 
>> > 
>> > ~.~
>> > 
>> > 
>> > Best regards,
>> > 
>> > 
>> > Larry E. Stites
>> > Northern California Networks, Inc.
>> > Nevada City, Calif. 95959
>> > 
>> > 
>> > 
>> > 
>> > _______________________________________________
>> > juniper-nsp mailing list juniper-nsp at puck.nether.net
>> > https://puck.nether.net/mailman/listinfo/juniper-nsp
>        
> 
> Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now.
> <http://



More information about the juniper-nsp mailing list