This script allows users to protect grub boot loader from compromise and set a security layer on it.
This script needs root privilege
chmod 764 grub_passwd.sh
sudo ./grub_passwd.sh
Important command use in script
grub-mkpasswd-pbkdf2 (generate hashed password for GRUB)
update-grub
./grub_passwd.sh [Option]
Option
-e Edit grub loader
-r Remove grub password