[nsp] [Fwd: Juniper Router Password Recovery]

From: TARRY James (james.tarry@swift.com)
Date: Thu Dec 20 2001 - 11:33:12 EST

best of luck,


Please do the following to recover/reset the root

        1. Obtain console access

        2. Power off the system and boot it up in
single user mode.
            This is done by typing "-s" at the boot:

        3. Next, the system will do it's normal boot up
process. When prompted
            for "pathname" enter:
            This will run a script for password

            Enter pathname of shell or RETURN for sh:

        4. The system will finish booting up and put
you at a "root>" prompt
            as such.

                NOTE: the system
                Starting CLI ...

        5. Now you can go into configuration mode and
edit or delete the
            root authentication password.

                root> configure
                Entering configuration mode

                root# delete system root-authentication

                root# commit and-quit
                 commit complete
                Exiting configuration mode

        6. Finally, reboot system.

                root@congo3> request system reboot
                Reboot the system ? [yes,no] (no) yes



If JUNOS management daemon (mgd) version is later than 3.3 running on your
router, follow these steps:

Obtain console access and reboot the router,

Stop boot cycle and boot the router using alternative boot media '-s':
            BOOT @ 0x10000: 639/65535 k of memory, serial/dual console

     Boot default: 0:wd(0,a)kernel

     Usage: bios_drive:interface(unit,partition)kernel_name options

     interface wfd or wd

     unit 0, 1, ...

     partition a, c, ...

     kernel_name name of kernel, or ? for list of files in root directory

     options -c (userconfig) -s (single user) -v (verbose)

     -D (dual consoles) -h (alternate console) -P (probe kbd)

To use the alternate boot media type "1:wd(2,a)kernel"

     boot: -s

At the prompt:
            "Enter pathname of shell or RETURN for sh:"

press Enter

Perform system file check and correct inconsistencies:
# fsck p

            This command should display similar messages to the following:

/dev/rwd0s1a: clean, 21287 free (31 frags, 2657 blocks, 0.0%

/dev/rwd0s1e: clean, 9233 free (9 frags, 1153 blocks, 0.1% fragmentation)

If you see unrecovered errors after running the fsck command, you can fix
the problem manually. For information, check the fsck options in the man

Mount the automatic file system and /var manually:
# mount a

# mount /var

Start the management daemon in single user mode:
            # mgd S

Start the CLI:
            # cli

Delete the root-authentication statement from the configuration:
> config

     # delete system root-authentication

     # commit

Exit the CLI:
     # commit

     # exit config

> exit

Reboot the router:
            # reboot


            Return to multiuser mode by typing control-D

            # ^D

This archive was generated by hypermail 2b29 : Sun Aug 04 2002 - 04:13:26 EDT