免费注册 查看新帖 |

Chinaunix

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

solaris8.0 忘记root的密码 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-06-18 11:25 |只看该作者 |倒序浏览
请问是否有什么办法解决?
我不想重装系统,谢谢!
sun ultra 5工作站

论坛徽章:
0
2 [报告]
发表于 2003-06-18 11:28 |只看该作者

solaris8.0 忘记root的密码

1. If the system is not halted, then halt the system by pressing Stop-A.
ok

2. Place the installation cdrom in the cdrom drive. Boot the system to single user mode using the cdrom drive.
ok boot cdrom -s

3. When Restart.
# fsck -y /dev/dsk/c0t0d0s0
# mount /dev/dsk/c0t0d0s0 /a
# cd /a/etc/
# vi shadow
Find root's entry in the file and make the second field null. Colons are the field delimeters. So your entry, after changes, should look something like:
root::10565::::::

4. Boot to single user mode using the hard disk.
# reboot -- -s
Note: That is reboot space hyphen hyphen space hyphen s.

5. You can log in as root without a password and set root's password using the passwd command.
# passwd
# sync

6. Exit single user mode and let the system continue booting to multi-user mode.
# reboot

论坛徽章:
0
3 [报告]
发表于 2003-06-18 11:28 |只看该作者

solaris8.0 忘记root的密码

又来一个——每天都有!!!!!
请先搜索一下久贴吧~~~~~

论坛徽章:
0
4 [报告]
发表于 2003-06-18 11:29 |只看该作者

solaris8.0 忘记root的密码

我好象听说过老师说

   按空格加64个C的方法,是内存溢出法你 试试看

论坛徽章:
0
5 [报告]
发表于 2003-06-18 11:32 |只看该作者

solaris8.0 忘记root的密码

原帖由 "pengtao_hlp" 发表:
我好象听说过老师说

   按空格加64个C的方法,是内存溢出法你 试试看
   

打过不定就不灵了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP