Linux虚拟机破解密码步骤

Linux破解密码

  • 重启系统

  • 到达logo界面快速 按 e 编辑当前条目

  • 将光标移至以 linux 开头的行,此为内核命令行

  • 在UTF-8(RHEL7);ro(RHEL8)后添加 rd.break (暂停initramfs运行)

  • 按 ctrl+x 继续启动

  • 重新以读写方式挂载/sysroot
    mount –o remount,rw /sysroot/

  • 切换至真正操作系统的根/sysroot
    chroot /sysroot

  • 重置密码
    echo redhat(此处为密码) | passwd --stdin root

  • 打标签
    touch /.autorelabel

  • exit 退出两次

  • 稍等一会 让虚拟机自动重启即破解成功

posted @ 2022-01-06 17:22  郑琰  阅读(185)  评论(0编辑  收藏  举报
#

# #