rhel8重置root密码 Posted on 2026-05-21 Views: 在redhat8下如何重置root密码… env rhel8.x ternimal 步骤 1.重启进入启动项引导界面,e键进入内核编辑界面 2.linux参数这行的最后面追加rd.break参数,然后按下Ctrl + X组合键运行修改过的内核程序 3.依次输入以下命令,再连续按下两次Ctrl + D组合键盘来退出并重启 mount -o remount,rw /sysroot chroot /sysroot passwd touch /.autorelabel # 开启selinux需要操作的 reboot