Linux7 重置root密码

reboot
e
linux16一行末尾加上 rd.break console=tty0
crl + x

mount -oremount,rw /sysroot
chroot /sysroot
passwd
touch /.autorelabel(重打标签)
exit
exit

原文地址:https://www.cnblogs.com/MiKaDoNik/p/8045925.html