破解RHEL7 root密码

1、重启虚拟机

2、在linux16末尾加上 rd.break,ctrl+x执行

3、mount -o remount,rw /sysroot

4、chroot /sysroot

5、passwd root

6、输入新密码:

7、确认密码

8、touch /.autorelabel

9、exit

10、exit

猜你喜欢

转载自blog.csdn.net/qq_42395917/article/details/84777901