1.4 重置root管理员密码
[root@RHEL8_Lab ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.6 (Ootpa)


最后更新于
[root@RHEL8_Lab ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 8.6 (Ootpa)


最后更新于
# mount -o remount,rw /sysroot 以读写模式重新挂载根分区
# chroot /sysroot 切换到系统真正的根目录下sysroot(/)
# passwd 重置密码
# touch /.autorelabel 这将导致整个文件系统被“重新标记”,在下次重新启动时向 SELinux 发出信号,表明文件系统已更改(更改的密码)并允许加载更改
# exit
# reboot