- 论坛徽章:
- 0
|
和几乎所有UNIX系统一样,单用户模式可以用来解除密码。JUNOS解除密码有两种方式,其实异曲同工,先来讲简单嘅:
1、按空格进入OK提示符,boot -s,单用户模式boot机;
2、运行/usr/libexec/ui/recovery-mode,进入recovery-mode
root> configure
root# delete system root-authentication
root# commit
搞掂!
接下来讲第二种稍为复杂少少嘅。
1、boot机入单用户模式:
The boot order is PCMCIA or floppy -> Flash -> Disk -> Lan ->
back to PCMCIA or floppy. Typing reboot from the command prompt will
cycle through the boot devices. On some models, you can set the next
boot device using the nextboot command: nextboot compact-flash | disk
For more information, use the help command: help
Hit [Enter] to boot immediately, or space bar for command prompt. then boot -s at the boot loader to start up in single user
mode
2、Enter pathname of shell or hit the Enter key for sh
3、Mount 分区 (version 5.x)
cd /packages
./mount.jbase
./mount.jkernel
./mount.jroute
4、启动恢复模式脚本
cd /usr/libexec/ui
./recovery-mode
5、等待一段时间后系统进入Cli命令行提示符模式:
root> CLI
6、进入配置模式并修改或者删除root认证密码.
7、保存配置后重启系统
8、以root帐号登入系统并重置密码
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/5101/showart_393750.html |
|