破解centos7root口令

破解centos7root口令

破解centos7root口令

重新挂载 mount -o rw,remount /sysroot,
切换根 chroot /sysroot/
更改密码 passwd
查看selinux 状态
getenforce
Disabled
如果selinux状态是Disabled不用在根下新建.autorelabel文件,如果selinux的状态为enforcing必须在根下创建.autorelabel文件

破解centos7root口令

exit
reboot

破解centos7root口令

猜你喜欢

转载自blog.51cto.com/13767698/2134714