Chinaunix

标题: 登陆shell错误,应该如何修复? [打印本页]

作者: stardict    时间: 2010-04-02 09:33
标题: 登陆shell错误,应该如何修复?
solaris 10 x86下修改/etc/passwd,想把root的登陆shell修改成/bin/bash,\r\n但不小心得写错了,变成/sbin/bash。导致现在登陆不了系统。系统里没有其它的用户\r\n存在了。\r\n\r\n用Ubuntu的修复光盘来进行修复,\r\n#mount -t ufs -o ufstype=sunx86,ro /dev/sda5 /mnt \r\n但只能以只读方式挂载,不能以读写方式挂,从而没办法修改/etc/passwd\r\n\r\nsolaris的DVD光盘不怎么会用修复的功能,应该如何操作了?
作者: stardict    时间: 2010-04-02 09:56
搞好了,原来光盘就有单用户模式
作者: zhmzhouming    时间: 2010-04-02 10:04
#mount -t ufs -o ufs type=sunx86,ro /dev/sda5 /mnt \r\n\r\n你这个ubuntu命令是不是也有问题,你mount为了ro模式? read only了?
作者: stardict    时间: 2010-04-02 10:08
是不能挂载为rw,提示说只能挂载为只读的。。。
作者: t_stones    时间: 2010-04-02 10:20
不用啊x86有failsafe模式的啊




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2