Skip to content

Instantly share code, notes, and snippets.

@ChrisTitusTech
Created December 3, 2021 16:10
Show Gist options
  • Save ChrisTitusTech/ebb28e49fea3ccaef4d4e730a4ef6a25 to your computer and use it in GitHub Desktop.
Save ChrisTitusTech/ebb28e49fea3ccaef4d4e730a4ef6a25 to your computer and use it in GitHub Desktop.
## Create Encrypted Hash for Password
```
sudo grub-mkpasswd-pbkdf2
```
## Add Hash to GRUB
```
sudo vim /etc/grub.d/40_custom
```
Add to end of file
```
set superusers="titus"
password_pbkdf2 titus grub.pbkdf2.sha512.10000.EXAMPLE000EXAMPLE000
```
## Finally Update GRUB
```
sudo update-grub
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment