我安装red hat enterprise linux 5.1 的时候。没有设置root密码, 只有设置一个普通帐号。

来源:互联网 发布:淘宝权健产品是真的吗 编辑:程序博客网 时间:2024/05/19 10:34

我安装red hat enterprise linux 5.1 的时候。没有设置root密码。
只有设置一个普通帐号。

--------------------------------

解决方法如下 :

 

1)开机出现倒数秒---回车
2)看见RedHat Enterprise Linux Server(2.6.18.el5xen)
3)输入e
4)选择module/vmliunuz-2.6.18-8.el5xen ro root=LABEL=/ rhgb quiet
再输入e
修改为module/vmliunuz-2.6.18-8.el5xen ro root=LABEL=/ single
按b
5)就进入了单用户模式--输入passwd 改密码就行了-
6)reboot重启就行了