Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Linux Software => Linux Application => Topic started by: Ujjwol on June 04, 2007, 05:58:04 AM

Title: Set GRUB Password
Post by: Ujjwol on June 04, 2007, 05:58:04 AM
I have set my GRUB Password, how can I set??
Title: Re: Set GRUB Password
Post by: Ricky on June 04, 2007, 12:52:50 PM
Open file : /boot/grub/menu.lst

There add or modify line :
Code: [Select]
password <give here your password>
If you want your password to be more secure then you can encrypt it,
For that first run following command:
Code: [Select]
grub-md5-cryptIt will then ask you for password to encrypt then shall give output of random characters ie. encrypted password.
Copy that and post into same file ie. /boot/grub/menu.lst  with -md5 in front of "password directive" .
So should be now.
Code: [Select]
password -md5 AeozDoktasokaXasdfasd here "AeozDoktasokaXasdfasd" is random password generated by that command.
This is to increase security, now only you know the real passwrd, even if someone open that file but cannot understand the password.