Saturday, March 17, 2012

Creating a grub password in RHEL



1. Login as root user
2. Give the command grub-md5-crypt
3. Now it will ask for the password you wish to give for the grub
4. Enter the password and confirm the password given.
5. now you will get an encrypted password. Just copy the password by selecting the encrypted password
6. Now give the command vim /etc/grub.conf
7. Press I to edit the file.
8. Just before the title paste:
                     password --md5 <encrypted password>
9. press esc and give ':wq' for write and quit the edit menu.
10.Now reboot the system and try entering into the grub.
11.For entering into the grub it will ask for the password which can be given by just pressing p. This will unlock the grub features.

No comments:

Post a Comment