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