[i=s] 本帖最后由 tswanggl 于 2011-11-23 10:30 编辑 [/i]
command line input grub-md5-crypt(md5加密)
password:*******
这时候会产生一串字符 eg:$1$1oh1O0$Th.rQaxwNr7LeTGFYOV/B0
copy this string
next:
#vi /etc/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
hiddenmenu
title CentOS (2.6.18-194.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.18-194.el5.img
next:然后在hiddenmenu title...之间加上password --md5 $1$1oh1O0$Th.rQaxwNr7LeTGFYOV/B0 保存退出(ESC :wq)
reboot
启动时按ESC 已经不是你按”E“就能进行编辑的时代了
clongxiang 于 2011-11-25 14:35:23发表:
谢谢了,学习中
tswanggl 于 2011-11-24 17:22:03发表:
刷BIOS
Uaprjuy 于 2011-11-23 11:42:25发表:
grub码能破么
tswanggl 于 2011-11-23 10:23:24发表:
3# 求知路漫漫
刚才有点错误的 把修改root的密码和设置grub密码搞混了 刚编辑了一下 现在好了 你试一下 呵呵
求知路漫漫 于 2011-11-23 10:16:44发表:
请教一下,这个grub密码在什么地方输入?看上面的案例,没提到要输入密码然后确认的地方?
求知路漫漫 于 2011-11-23 10:15:52发表:
已转载,嘿嘿。谢谢LZ