Linux重置root密码
1.在内核选择界面按e进入内核编辑界面
2.进入内核编辑界面以后找到linux16这一行
3.在linux16这一行的末尾输入rd.break,并按Ctrl+X运行修改过的内核程序![这里写图片描述](https://i-blog.csdnimg.cn/blog_migrate/7ede7835a9b2fab45a2e4db0c7dc50e3.jpeg)
4.稍等片刻,进入系统的紧急求援模式
5.依次输入以下命令
mount -o remount,rw /sysroot
chroot /sysroot
passwd
touch /.autorelabel
exit
reboot