01. Login as root
02. create an new encrypted password for grub
[root@daddylinux~]#grub-md5-crypt
Password: ****** (uddika)
Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password)
03. copy the new encrypted password by highlighting it using the mouse
04. Open the grub configuration file for editing
[root@daddylinux~]#nano /etc/grub.conf
05. Find this line
password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
06. Replace with the following line (Right click the mouse to paste new password)
password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
07. Save this file
Ctrl + O
08. Exit the file
Ctrl + X
Hi, what if you've forgotten the GRUB password? How do you recover from that?
ReplyDeleteThanks for your nice post. I have configure it in Redhat 6.
ReplyDeleteI have written a post related topic. Set password on Linux grub to secure root user | Redhat 6