May 27, 2022, 06:40:05 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Set GRUB Password  (Read 5223 times)

Offline Ujjwol

  • Linux Learner
  • ***
  • Posts: 54
Set GRUB Password
« on: June 04, 2007, 05:58:04 AM »
I have set my GRUB Password, how can I set??

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Re: Set GRUB Password
« Reply #1 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.