分类: LINUX
2008-04-10 10:45:48
1、用grub-md5-crypt成生GRUB的md5密码;
通过grub-md5-crypt对GRUB的密码进行加密码运算,比如我们想设置grub的密码是123456,所以我们先要用md5进行对123456这个密码进行加密
[root@linux01 beinan]# /sbin/grub-md5-crypt Password: 在这里输入123456 Retype password: 再输入一次123456 $1$7uDL20$eSB.XRPG2A2Fv8AeH34nZ0 |
default=1 timeout=10 splashimage=(hd0,7)/boot/grub/splash.xpm.gz title Fedora Core (2.4.22-1.2061.nptl) root (hd0,7) kernel /boot/vmlinuz-2.4.22-1.2061.nptl ro root=LABEL=/ initrd /boot/initrd-2.4.22-1.2061.nptl.img title WindowsXP rootnoverify (hd0,0) chainloader +1 |
timeout=10 splashimage=(hd0,7)/boot/grub/splash.xpm.gz password ——md5 $1$7uDL20$eSB.XRPG2A2Fv8AeH34nZ0 title Fedora Core (2.4.22-1.2061.nptl) lock root (hd0,7) kernel /boot/vmlinuz-2.4.22-1.2061.nptl ro root=LABEL=/ initrd /boot/initrd-2.4.22-1.2061.nptl.img title WindowsXP rootnoverify (hd0,0) chainloader +1 |