grub密码

[root@lnmp ~]# grub-md5-crypt
Password:
Retype password:
$1$k9fQ//$Fh3/O8i3.9dw4zarIHtIx1

[root@lnmp ~]# vim /boot/grub/grub.conf
10 default=0
11 timeout=5
12 splashimage=(hd0,0)/grub/splash.xpm.gz
13 password --md5 $1$k9fQ//$Fh3/O8i3.9dw4zarIHtIx1     <<====全局密码,不能直接使用e命令编辑启动标签
14 hiddenmenu
15 title CentOS (2.6.32-642.1.1.el6.x86_64)
16 password --md5 $1$k9fQ//$Fh3/O8i3.9dw4zarIHtIx1    <<====菜单秘密,输入菜单密码才能够引导系统
17 root (hd0,0)

 

参考地址:http://kerry.blog.51cto.com/172631/149977/

posted @ 2017-05-10 18:22  martin1317  阅读(168)  评论(0编辑  收藏  举报