免费注册 查看新帖 |

Chinaunix

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

Aide-memoire: Darwin/x86 Lost Root Password - recovery [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-01-09 10:39 |只看该作者 |倒序浏览
Step 1: At boot2 prompt: hd()mach_kernel -s

After booting, the kernel will spawn a shell with the familiar "sh#" shell prompt.

Step 2: Execute a fsck command to ensure integrity of filesystem:

sh# /sbin/fsck -y

Wait for the system to salvage any loose bits and pieces. The system will finish off with another "sh#" shell prompt.

Step 3: Mount the filesystem read/write -- otherwise you cannot change anything, including the lost password

sh# /sbin/mount -uw /

Step 4:

sh# passwd root  /* set your new password with the passwd command, ** Note ** default is Netinfo */

or

sh# passwd -i file root /* set your new password with the '-i file' attributes for flat files and pwd_mkdb -p the master passwd file as usual */

Step 5:

sh# reboot


AND you can login as root with the new password.

HAVE    FUN!

论坛徽章:
0
2 [报告]
发表于 2004-01-10 12:11 |只看该作者

Aide-memoire: Darwin/x86 Lost Root Password - recovery

Great.

论坛徽章:
0
3 [报告]
发表于 2004-03-16 22:07 |只看该作者

Aide-memoire: Darwin/x86 Lost Root Password - recovery

Oh,I got it.Thanks.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP