在VMware X86 环境下测试光盘引导方式删除root密码!
【参考】
http://docs.huihoo.com/opensolaris/system-administration-guide-advanced-administration/html/ch25s02.html
What to Do if You Forgot Root Password
If you forget the root password and you cannot log into the system, you will have to do the following:
· Stop the system by using the keyboard stop sequence.
· Solaris Express 6/05: On x86 based systems, boot the system in the Solaris failsafe archive.
· Solaris 10: Boot the system from a boot server or an install server, or from a local CD-ROM.
· Mount the root (/
) file system.
· Remove the root password from the /etc/shadow
file.
· Reboot the system.
· Log in and set root's password.
These procedures are fully described in Booting a SPARC Based System in System Administration Guide: Basic Administration , Booting a System in the GRUB Based Boot Environment in System Administration Guide: Basic Administration , and Booting an x86 Based System in System Administration Guide: Basic Administration .
Note
GRUB based booting is not available on SPARC based systems in this Solaris release.
The following examples describe how to recover from a forgotten root password on both SPARC and x86 based systems.
[@more@]Example 25.1. What to Do if You Forgot Root Password
The following example shows how to recover when you forget the root password by booting from the network. This example assumes that the boot server is already available. Be sure to apply a new root password after the system has rebooted.
Example 25.2. Performing a GRUB Based Boot When You Have Forgotten the Root Password
Solaris Express 6/05: This example assumes that the boot server is already available. Be sure to apply a new root password after the system has rebooted.
Example 25.3. Booting a System When You Have Forgotten the Root Password
Solaris 10: The following example shows how to recover when you forget root's password by booting from the network. This example assumes that the boot server is already available. Be sure to apply a new root password after the system has rebooted.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/60144/viewspace-1023573/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/60144/viewspace-1023573/