best of luck,
ROUTER PASSWORD RECOVERY
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
NOTE: the system
Starting CLI ...
5. Now you can go into configuration mode and
edit or delete the
root authentication password.
Entering configuration mode
root# delete system root-authentication
root# commit and-quit
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"
At the prompt:
"Enter pathname of shell or RETURN for sh:"
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:
Delete the root-authentication statement from the configuration:
# delete system root-authentication
Exit the CLI:
# exit config
Reboot the router:
Return to multiuser mode by typing control-D
This archive was generated by hypermail 2b29 : Sun Aug 04 2002 - 04:13:26 EDT