linux root密码的破解

1.gurb界面按下e键,进入内核编辑页面。

2.在linux16的末尾加上rd.break,注意先加个空格,ctrl+x保存。

3.依次输入

mount -o remount,rw /sysroot
chroot /sysroot
passwd
touch /.autorelabel
exit
reboot

4.等待重启之后就可以输入刚刚重新更换过的root密码了。灰常nice。

 

猜你喜欢

转载自www.cnblogs.com/chenfduo/p/10354337.html
今日推荐