Jira Courses, Training and Consulting: Sparxsys Trainings
Thanks for coming here, I hope you are enjoying learning here, I have also written some books in case you want to learn a bit more :)
If you need my help with Drupal, Linux, Jira, Scripting, Automation or want to contact me then raise a ticket for me please :) and I will get back to you, promise. At Sparxsys we provide Atlassian consultancy services, reach out to me at ravi at sparxsys dot com

HOWTO password protect your GRUB

Procedure to password protect your grub menu is simple. Steps are mentioned below.

1. Use the command grub-md5-crypt to generate an encrypted password in MD5 (Message Digest Algorithm 5) format.

[root@localhost ~]# grub-md5-crypt
Password:
Retype password:
$1$POASwwdRoW$3.eaRn3fFinARCXjN9CRh/qG/

2. Open your /boot/grub/grub.conf file and copy the encrypted password.

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,0)
# kernel /boot/vmlinuz-version ro root=/dev/sda1
# initrd /boot/initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
password --md5 $1$POASwwdRoW$3.eaRn3fFinARCXjN9CRh/qG/
title Fedora (2.6.23.1-42.fc8)
root (hd0,0)
kernel /boot/vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/
initrd /boot/initrd-2.6.23.1-42.fc8.img

Enter the password --md5 ENCRYPTED-PASSWORD line just before the title line.

3. Restart your computer and to modify the GRUB menu first enter p and then enter the password that you encrypted.

4. Now your GRUB is MD5 password protected.

Similar posts

Subscribe

* indicates required

Please confirm that you would like to from Sparxsys:

You can unsubscribe at any time by clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices.

Want to contact me?