Linux-破解rhel7-root密码

破解7的密码
1.linux16  rd.break
2.mount -o remount,rw /sysroot
3.chroot /sysroot
4.passwd
5.touch /.autorelabel
exit
exit
7版本grub菜单加密
1.grub2-mkpasswd-pbkdf2
2.vi /etc/grub.d/40_custom
set superusers="root"
password_pbkdf2 root grub.pbkdf2.sha512.10000.7669206D8171A48FC040586CA67347D84BF910206DCCE86CC3D027DF844B023DB53648C25BD3337C2FF5F423D868E04D5DF84363D53F731D7E884D3CF6EB2943.F548BCE84B28829C3C06E302D6F2332D0FC607BCAE1EFE6936BD94BE7A61B90966DA0ADB2F17AE4EA3160D15DF6F68665F34490A108FCCBED1631C13B997F71A
3.grub2-mkconfig -o /boot/grub2/grub.cfg

转载于:https://www.cnblogs.com/lihuaichen/p/8270206.html

你可能感兴趣的:(Linux-破解rhel7-root密码)