忘记Root密码的解决办法

忘记了Linux Root密码怎么办?
通过Linux单用户模式来修改密码吧。

以RHEL4.6为例,进入GRUB引导菜单,
按”e”键进入编辑模式,选择”kernel /vmlinuz-2.6.9-67…”,
再按”e”键,在文本结尾处输入”single”,回车,
按”b”键让GRUB引导单用户模式。
引导成功后,您会看到Shell提示为:
sh-3.00#
用passed命令来修改密码吧!
键入:
sh-3.00# passwd root
输入两遍新口令后reboot一下,成功!

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google photo

You are commenting using your Google account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s