577, Gold Plaza, Punjab Jewellers, M.G. Road, Opp. Treasure Island Mall

How to Protect Grub Boot Loader by Password in Kali Linux.

How to Protect Grub Boot Loader by Password in Kali Linux.

GRand Unified Bootloader (GRUB) is a default bootloader in all Unix-like operating systems. As promised in our earlier article “How to reset a forgotten root password“, here we are going to review how to protect GRUB with a password. As mentioned earlier post, anyone can login into single-user mode and may change system setting as needed. This is the big security flow. So, to prevent such unauthorized person to access system we may require to have grub with password protected.

Here, we’ll see how to prevent a user from entering into a single user mode and changing the settings of a system that may have direct or physical access to the system.

  1. Open Kali  Linux and then go to the terminal.
  2. Go to grub.d file by the following command

  1. Create the password by typing this command

  1. After you enter the password, copy the whole generated code that appears.
  2. Now edit the file/etc/grub.d/10_linux using vim by following commands

 

  1. Save the changes and exit the editor.
  2. Update grub using either of the commands;

Leave a comment

WhatsApp us