破解 CentOS 7和8的 root 密码 破解 CentOS 7和8的 root 密码 添加grub2密码,预防破解 清空grub密码 修复GRUB2 破解 CentOS 7和8的 root 密码 启动时任意键暂停启动 按e键进入编辑模式 将光标移动linux 开始的行,添加内核参数rd.break 按ctrl-x启动 mount –o remount,rw /sysroot chroot /sysroot passwd root #如果SELinux是启用的,才需要执行下面操作,如查没有启动,不需要执行 touch /.autorelabel exit reboot