- 论坛徽章:
- 0
|
SOLARIS 8 X86忘了root密码,但可一般用户帐号登入
1. If the system is not halted, then halt the system by pressing Stop-A.
ok
2. Place the installation cdrom in the cdrom drive. Boot the system to single user mode using the cdrom drive.
ok boot cdrom -s
3. When Restart.
# fsck -y /dev/dsk/c0t0d0s0
# mount /dev/dsk/c0t0d0s0 /a
# cd /a/etc/
# vi shadow
Find root's entry in the file and make the second field null. Colons are the field delimeters. So your entry, after changes, should look something like:
root::10565::::::
4. Boot to single user mode using the hard disk.
# reboot -- -s
Note: That is reboot space hyphen hyphen space hyphen s.
5. You can log in as root without a password and set root's password using the passwd command.
# passwd
# sync
6. Exit single user mode and let the system continue booting to multi-user mode.
# reboot |
|