https://askubuntu.com/questions/656206/how-to-password-protect-grub-menu
Generate hash: $ grub-mkpasswd-pbkdf2 Edit Grub configuration: $ sudo nano /etc/grub.d/40_customType this and save, filling in your user name and the hash just generated by the first command:
set superusers="username" password_pbkdf2 username hash
