免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-06-14 20:31 |只看该作者 |倒序浏览
急!!/etc/passwd中用户root的sh选项设置错误,现在进不了?   \r\n \r\n这是系统唯一的具有root权限的用户。 \r\netc/passwd中用户root的sh选项设置错误,(原来应该是/sbin/sh我写成/sbin/bash) \r\n显示no shell \r\n能否指定其他的shell登陆? \r\n\r\n万分感谢!

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

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

login with other username and password\r\nsu root\r\nvi /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选项设置错误,现在进不了?

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

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

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

Thanks for blazewater.\r\nBut I want to know which key is \'STOP\' key?\r\nOR 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.\r\nHow can I do??
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP