如何在CentOS7中为root用户重置密码
重新启动服务器到以下界面.
按键 “Ë”
加 “初始化= / bin / sh” which is in the red box
按键 “Ctrl + x”, You’ll lonin the server without password
Reset password by inputing the following command
mount -o remount,rw /
passwd root
touch /.autorelabel
exec /sbin/init
Press “Enter”.
Login server by new password.