分类: LINUX
2008-04-25 15:31:48
版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://beyondbest.blog.51cto.com/313501/61828 |
[root@beyond ~]# /sbin/grub-md5-crypt
Password: Retype password: $1$tKjdM$WH5Aq18eshWF9JhQ9NVBC0 [root@beyond ~]# vi /boot/grub/grub.conf [root@beyond ~]# vi /boot/grub/grub.conf
[root@beyond ~]# cat !$ cat /boot/grub/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/sda2 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz password --md5 $1$tKjdM$WH5Aq18eshWF9JhQ9NVBC0 hiddenmenu title Red Hat Enterprise Linux AS (2.6.9-42.ELsmp) root (hd0,0) kernel /vmlinuz-2.6.9-42.ELsmp ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.9-42.ELsmp.img title Red Hat Enterprise Linux AS-up (2.6.9-42.EL) root (hd0,0) kernel /vmlinuz-2.6.9-42.EL ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.9-42.EL.img 以上过程完成grub密码的MD5加密 破解linux grub 密码
首先输入第一张光盘输入 linux rescue
切换当前的根目录:chroot /mnt/sysimage
删除 grub.conf 里的MD5加密密码即可
本文出自 “我爱家驹---驹魂余辉” 博客,请务必保留此出处http://beyondbest.blog.51cto.com/313501/61828 本文出自 51CTO.COM技术博客 |