To lock down Linux GRUB, complete the following steps:
<br>
- Download the attachment lock-grub.sh.
- Make it executable: chmod +x lock-grub.sh
- Execute the script with your desired password: sudo ./lock-grub.sh admin256
<br>
This puts a password entry in /boot/grub/menu.lst as an md5 hash. If you want to change it after running this script, replace the hash with one created with grub-md5-crypt.
<br>
To view code follow the link: http://exacq-staging.instil.co/#/file-manager/1b63f3e9-b6e5-48be-9cd2-14b4a1ad2fad/kb-00597-597-210212
<br>