1.设置明文密码
1.1编辑grub.conf
[[email protected] ~]# vim /boot/grub/grub.conf
1.2插入password
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
password=
title CentOS (2.6.32-642.11.1.el6.x86_64)
2.设置MD5加密密码
1.1生成MD5密码
[[email protected] ~]# grub-md5-crypt
1.2编辑grub.conf
[[email protected] ~]# vim /boot/grub/grub.conf
1.3插入password
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
password --md5 #加上生的MD5密码
title CentOS (2.6.32-642.11.1.el6.x86_64)
时间: 2024-12-16 16:33:58