Solaris10忘记root密码后处理方法

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/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值