1. 重新启动机器,让grub引导桌面停止(摁上下键)
2.按”e”进到编辑界面
3.找到Linux16这一段,在段尾加上空格rd.break
4.按“ctrl+x”进入单用户模式
5.switch_root:/# mount -o remount,rw /sysroot //重新挂载(mount是挂载的意思)/sysroot
6.switch_root:/#chroot /sysroot //更改目录
7. sh-4.2#echo “1” | passwd --stdin root //更改root用户密码为1
8. Sh-4.2#touch /.autorelabel //刷新规则表
9. Sh-4.2#exit //退出sh-4.2
10. switch_root:/#exit //退出单用户模式
linux单机破解密码
最新推荐文章于 2024-01-09 19:31:01 发布