linux破解密码

1.关机
2.按e进入grub


3.在linux16行末尾输入 rd.break console=tty1
 

4.按ctrl+“X”执行。
 
5.输入

mount -o remount,rw /sysroot
chroot /sysroot
passwd                               #输入2次密码


6.touch /.autorelabel
7.exit
8.reboot

  

重启之后如果能用密码进入,说明破解成功。
 

原文地址:https://www.cnblogs.com/twoo/p/11567532.html