Posts

Showing posts with the label UBUNTU18.03

How to set Grub Password in UBUNTU 18.03 (Password protect Boot Loader)

Image
  First, open a terminal from Ubuntu’s applications menu Take backup of two files :  cp /etc/grub.d/40_custom /etc/grub.d/40_custom.old and  cp /boot/grub/menu.lst /boot/grub/menu.lst.bkp Generating a Password Hash :  Just type  grub-mkpasswd-pbkdf2  and press Enter Generating a Password Hash 4.  Setting a Password:  Type  sudo vi /etc/grub.d/40_custom  to open the 40_custom file in the Nano text editor. This is the place where you should put your own custom settings. They may be overwritten by newer versions of Grub if you add them elsewhere. Save password in /etc/grub.d/40_custom scroll down to the bottom of the file and add a password entry in the following format: set superusers=”name” password_pbkdf2 <superusers_name>[long string from earlier] password Entry in /etc/grub.d/40_custom file 5. Open /boot/grub/menu.lst file and follow the below steps a. Generate md5 password :  echo -n <password> | md5sum b. Ope...