- 论坛徽章:
- 0
|
SOLARIS 8 X86忘了root密码,但可一般用户帐号登入
1. If the system is not halted, then halt the system by pressing Stop-A.\r\nok\r\n\r\n2. Place the installation cdrom in the cdrom drive. Boot the system to single user mode using the cdrom drive.\r\nok boot cdrom -s\r\n\r\n3. When Restart.\r\n# fsck -y /dev/dsk/c0t0d0s0\r\n# mount /dev/dsk/c0t0d0s0 /a\r\n# cd /a/etc/\r\n# vi shadow\r\nFind 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: \r\nroot::10565:::::: \r\n\r\n4. Boot to single user mode using the hard disk.\r\n# reboot -- -s \r\nNote: That is reboot space hyphen hyphen space hyphen s.\r\n\r\n5. You can log in as root without a password and set root\'s password using the passwd command.\r\n# passwd\r\n# sync\r\n\r\n6. Exit single user mode and let the system continue booting to multi-user mode.\r\n# reboot |
|