免费注册 查看新帖 |

Chinaunix

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

急!!/etc/passwd中用户root的sh选项设置错误,现在进不了? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-06-14 20:31 |只看该作者 |倒序浏览
急!!/etc/passwd中用户root的sh选项设置错误,现在进不了?   

这是系统唯一的具有root权限的用户。
etc/passwd中用户root的sh选项设置错误,(原来应该是/sbin/sh我写成/sbin/bash)
显示no shell
能否指定其他的shell登陆?

万分感谢!

论坛徽章:
0
2 [报告]
发表于 2003-06-14 20:38 |只看该作者

急!!/etc/passwd中用户root的sh选项设置错误,现在进不了?

login with other username and password
su root
vi /etc/passwd

论坛徽章:
0
3 [报告]
发表于 2003-06-14 20:41 |只看该作者

急!!/etc/passwd中用户root的sh选项设置错误,现在进不了?

按root密码丢失的办法处理,以后可别改了

论坛徽章:
0
4 [报告]
发表于 2003-06-14 20:42 |只看该作者

急!!/etc/passwd中用户root的sh选项设置错误,现在进不了?

不行啊
su root提示no shell

论坛徽章:
0
5 [报告]
发表于 2003-06-14 20:45 |只看该作者

急!!/etc/passwd中用户root的sh选项设置错误,现在进不了?

boot from Install CD,and edit /etc/passwd

论坛徽章:
0
6 [报告]
发表于 2003-06-14 20:47 |只看该作者

急!!/etc/passwd中用户root的sh选项设置错误,现在进不了?

boot from CD1, and vi /etc/passwd

论坛徽章:
0
7 [报告]
发表于 2003-06-14 20:48 |只看该作者

急!!/etc/passwd中用户root的sh选项设置错误,现在进不了?

Step 1: power off your workstation;
Step 2: power on your workstation;
Step 3: press key STOP+A, and you
            can go into OpentBoot, your
            prompt is OK >;;
Step 4: put your Solaris8 Software 2/1 CD into CDROM;
Step 5: OK >; boot cdrom -s;
Step 6: you can boot one mini kernel Solaris system reside
            in memory  into single user mode;
Step 7: yes, your prompt is # ;
Step 8: mount /dev/rdsk/c0t0d0s0 /a ( if your root filesystem is other, mount it);
Step 9: if mount failed, then use: fsck /dev/rdsk/c0t0d0s0 to
             check it;
Step10: after mount ok, follow that:
              cd /a/etc
              vi passwd
              change shell to /sbin/sh;
Step11: reboot
Step12: if not other exception, OK

论坛徽章:
0
8 [报告]
发表于 2003-06-14 20:53 |只看该作者

急!!/etc/passwd中用户root的sh选项设置错误,现在进不了?

Thanks for blazewater.
But I want to know which key is 'STOP' key?
OR press the keys S T O P + A?

论坛徽章:
0
9 [报告]
发表于 2003-06-15 01:04 |只看该作者

急!!/etc/passwd中用户root的sh选项设置错误,现在进不了?

The Stop key is located on the left side of the sun keyboard.

论坛徽章:
0
10 [报告]
发表于 2003-06-15 13:09 |只看该作者

急!!/etc/passwd中用户root的sh选项设置错误,现在进不了?

But I have no sun keyboard,I used the normal 101 keyboard.
How can I do??
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP