Root password reset method of CentOS system

1. Restart Linux, see the picture below, select the first one through the up and down arrow keys on the keyboard 2.
insert image description here
Press , the interface eshown in the picture below appears Load the root directory 6. Select the user name to modify the password, passwd root, then enter the same password twice, and press Enter in turn. ( ) 7. Update the system information. 8. Finally, enter the command to restart the system. 9. Enter the login interface, and enter the modified password to log in.
insert image description here
LANG=zh_CN.UTF-8init=/bin/sh
insert image description here
ctrl+x
insert image description here

insert image description here

注意: 输入密码不显示,一定要确认输入正确
insert image description here
touch /.autorelabel
insert image description here
exec /sbin/init
insert image description here

insert image description here

Guess you like

Origin blog.csdn.net/weixin_43520450/article/details/127580768