- 论坛徽章:
- 0
|
Step 1: At boot2 prompt: hd()mach_kernel -s
After booting, the kernel will spawn a shell with the familiar "sh#" shell prompt.
Step 2: Execute a fsck command to ensure integrity of filesystem:
sh# /sbin/fsck -y
Wait for the system to salvage any loose bits and pieces. The system will finish off with another "sh#" shell prompt.
Step 3: Mount the filesystem read/write -- otherwise you cannot change anything, including the lost password
sh# /sbin/mount -uw /
Step 4:
sh# passwd root /* set your new password with the passwd command, ** Note ** default is Netinfo */
or
sh# passwd -i file root /* set your new password with the '-i file' attributes for flat files and pwd_mkdb -p the master passwd file as usual */
Step 5:
sh# reboot
AND you can login as root with the new password.
HAVE FUN! |
|