免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1251 | 回复: 0
打印 上一主题 下一主题

JUNOS:Password Recovery [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-10-02 06:13 |只看该作者 |倒序浏览
和几乎所有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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP