Skip to content

Instantly share code, notes, and snippets.

@ChrisTitusTech
Created January 6, 2022 15:45
Show Gist options
  • Save ChrisTitusTech/88b7a7910cdeeafa44f6c492fec539ff to your computer and use it in GitHub Desktop.
Save ChrisTitusTech/88b7a7910cdeeafa44f6c492fec539ff to your computer and use it in GitHub Desktop.

Create Encrypted Hash for Password

sudo grub-mkpasswd-pbkdf2

Output:

grub.pbkdf2.sha512.10000.EXAMPLE000EXAMPLE000

Edit grub template before updating

sudo vim /etc/grub.d/40_custom

Add to end of file:

set superusers="titus"
password_pbkdf2 titus grub.pbkdf2.sha512.10000.EXAMPLE000EXAMPLE000

Update Grub

sudo update-grub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment