Anecdotes from a Linux Systems Administrator. /root

Home About Books Blog Portfolio Archive
22 December 2013

Password protecting GRUB in RHEL/CentOS

by Alpha01

Specifying a password to modify GRUB during the boot start-up phase can be initially set during the install, but it can also be manually added and or modified after the installation.

Using the grub-md5-crypt utility, you can generate an md5 hashed password (some security better than no security).

[root@centos6 ~]# grub-md5-crypt 
Retype password: 

Now, is just a matter of adding the following entry in /boot/grub/grub.conf.

password --md5 $1$/dvPV1$ngGsOO21eHj2lzEk7wg9d0

Restart, and voala.

GRUB image

Tags: [ centos rhel security ]