最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 正文

JUNOS-password

来源:动视网 责编:小OO 时间:2025-09-29 19:37:38
文档

JUNOS-password

CurrentNoteNumber:17787Synopsis:HowtorecoverrootpasswordforJUNOSversions4.XoraboveProblem:HowtorecoverrootpasswordSolution:GetconsoleaccessPowerupthesystemEnterpathnameThesystemwillbootupConfigurationModeForroutersrunningJUNOS4.X.Obtainconsoleaccess
推荐度:
导读CurrentNoteNumber:17787Synopsis:HowtorecoverrootpasswordforJUNOSversions4.XoraboveProblem:HowtorecoverrootpasswordSolution:GetconsoleaccessPowerupthesystemEnterpathnameThesystemwillbootupConfigurationModeForroutersrunningJUNOS4.X.Obtainconsoleaccess
Current Note  

  Number:17787

Synopsis:

How to recover root password for JUNOS versions 4.X or above 

Problem: 

How to recover root password 

Solution: 

Get console access

Power up the system

Enter pathname

The system will boot up

Configuration Mode

For routers running JUNOS 4.X. 

Obtain console access 

Power of the system and boot it up in single user mode. 

This is done by typing "-s" at the boot: prompt. 

>> BOOT @ 0x10000: 639/512 k of memory, serial/dual console

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

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

          interface    fd, wd or sd

          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)

按空格后输入 boot: -s <====== Type "-s"

Next, the system will do it's normal bootup process. 

When prompted for "pathname" enter: 

     /usr/libexec/ui/recovery-mode

This will run a script for PW recovery. 

      Enter pathname of shell or RETURN for sh:

/usr/libexec/ui/recovery-mode  

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

      

      ...

      ...

      NOTE: the system

      Starting CLI ... 

root>

Now you can go into configuration mode and edit or 

delete the root authentication password. 

root> configure

       Entering configuration mode

       [edit]

       root# delete system root-authentication 

       [edit]

       root# commit and-quit 

       commit complete

       Exiting configuration mode

Finally, reboot system. 

root@congo3> request system reboot

      Reboot the system ? [yes,no] (no) yes 

For routers running JUNOS 5.X and above 

From console, interrupt the boot routine: 

 

        Hit [Enter] to boot immediately, or any other key for command prompt.

        Booting [kernel] in 9 seconds...

 

< Press the space bar at this point >

 

Enter into single-user mode: 

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

        ok boot –s

 

Enter the shell: 

        System watchdog timer disabled

        Jan  1 00:36:47 init: /etc/spwd.db: No such file or directory

        Enter full pathname of shell or RETURN for /bin/sh: 

Mount the virtual file systems (for JUNOS 5.4 and above, it is not necessary to mount the jbase package, however the other packages still need to be mounted): 

        NOTE: to go to multi-user operation, exit the single-user shell (with

^D)

        # cd /packages

、        # ./mount.jbase

        Mounted jbase package on /dev/vn1...

        # ./mount.jkernel

        Mounted jkernel package on /dev/vn2...

        # ./mount.jroute

        Mounted jroute package on /dev/vn3...

 

Enter recovery mode: 

        # /usr/libexec/ui/recovery-mode

 

Enter configuration mode and either delete or change the root authentication password: 

 

root> configure

        Entering configuration mode

 

        [edit]

        root# delete system root-authentication 

Commit the changes, and exit configuration mode 

        [edit]

        root # commit 

        commit complete

 

        [edit]

        root@router# exit 

        Exiting configuration mode

 

root@router> exit

 

Exit recovery mode and enter “y” when prompted to reboot the system: 

        Reboot the system? [y/n] y

        Terminated

The system now reboots and changes made to root authentication are activated. 

Affected Release: N/A

Fixed Release: N/A

Defect/Solution: Solution

Defect ID: N/A

State: N/A

Severity: N/A

Series: M/T-Series 

文档

JUNOS-password

CurrentNoteNumber:17787Synopsis:HowtorecoverrootpasswordforJUNOSversions4.XoraboveProblem:HowtorecoverrootpasswordSolution:GetconsoleaccessPowerupthesystemEnterpathnameThesystemwillbootupConfigurationModeForroutersrunningJUNOS4.X.Obtainconsoleaccess
推荐度:
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top