900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > 重置linux红帽登录密码 红帽(RHEL)Linux 忘记root密码后重置密码

重置linux红帽登录密码 红帽(RHEL)Linux 忘记root密码后重置密码

时间:2018-12-02 18:12:03

相关推荐

重置linux红帽登录密码 红帽(RHEL)Linux 忘记root密码后重置密码

方法一:以single模式进入字符界面重置密码

1:系统开机出现如下画面时:

2.按e键进入如下:

3.按e键进入如下:

4.按e键进入如下:

5.在末尾加上字符“ single” (注意空格)

6.按回车进入如下:

7.按b键引导系统进入如下:

8.输入修改密码命令:passwd root

9.密码修改结束后重启

10.重启开机后可使用root账户密码成功登入

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

方法二:以其它用户登入并使用sudo命令修改root用户密码

1.[huqp@vmhost root]$ sudo passwd root

2.[sudo] password for huqp:

---------------输入完成之后若提示“huqp is not in the sudoers file. This incident will be reported.”,

---------------则参考博文:xxxis not in the sudoers file. This incident will be reported的解决方法

3.Changing password for user root.

New UNIX password:

4.BAD PASSWORD: it does not contain enough DIFFERENT characters

Retype new UNIX password:

passwd: all authentication tokens updated successfully.

提示修改成功!!!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。