1. Restart Linux, see the picture below, select the first one through the up and down arrow keys on the keyboard 2.
Press , the interface e
shown 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.
LANG=zh_CN.UTF-8
init=/bin/sh
ctrl+x
注意: 输入密码不显示,一定要确认输入正确
touch /.autorelabel
exec /sbin/init
Root password reset method of CentOS system
Guess you like
Origin blog.csdn.net/weixin_43520450/article/details/127580768
Ranking