- 论坛徽章:
- 0
|
急!!/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 |
|