利用启动光盘sol-9-u8-ga-x86-v1.iso进入单用户
步骤:
1.将光盘放到光驱
2.启动电脑
3.在画面刚出现"Run configuration Assistant"时,有提示按"escape"键.
4. 按下"esc"键后.出现设备配置屏幕,按"F2"键
5.再按"F2"键,到下一屏幕,再按"F2"建
6.此时出现了选择启动内核设备的屏幕,选择"CD"那项.
7.选择"CD"后,再按"F2"键
8.然后出现下一屏幕.底下有一行"Select type of installaton:",在后面输入boot -s
系统启动完成后提示 INIT single user mode
如果忘记root密码请执行如下操作:
1.#TERM=sun (TERM=vt100也可以)
#export TERM
如果不执行这个步骤,系统将提示:
I don't know what kind of termianl you are on - all I have is 'unknown'.
2.#mount /dev/dsk/c1t0d0s0 /mnt
3.#cd /mnt/etc/
4.vi /etc/shadow
把kale:dTLDInC8xB2gg:13688:::::: ==》修改为kale::13688:::::: 强制保存退出
(网上有人说要编辑/etc/passwd,但我试了不行,我把
kale:x:100:100::/export/home/kale:/bin/sh中的x字段删除,问题依旧)
5.再次登录时提示输入新密码,但前六个字符必须包含至少两个字母及至少一个数字字符或其它规定字符
第一次输入全英文的密码不行,后面输入abc123就可以了。
SunOS 5.9
login: kale
Choose a new password.
New Password:
telnet: The first 6 characters of the password
must contain at least two alphabetic characters and at least
one numeric or special character.
Try again
Choose a new password.
New Password:
Re-enter new Password:
telnet: password successfully changed for kale
Last login: Sun Jun 24 16:30:52 from 192.168.0.7
Sun Microsystems Inc. SunOS 5.9 Generic January 2003
提问:为什么这里限制得这么严格,安装时的root密码却可以是空的?