Centos7重置root密码

1)启动Linux Centos7系统,当出现如下画面时,直接按“e”键继续

2)在如下截图的位置,添加“rw single init=/bin/bash”,添加后按“Ctrl + x”引导系统

3)在如下截图位置,即可输入“passwd”来重置root密码了

4)运行命令“exec /sbin/init”来正常启动系统,需要输入修改后的root密码

5)进入系统后,输入命令“reboot”即可重启系统

 

Centos7重置root密码
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Scroll to top
0
Would love your thoughts, please comment.x
()
x