Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4421

Using grub-mkpasswd-pbkdf2 - where is hash stored?

$
0
0

I am following this guide to set up a GRUB 2 password. I ran grub-mkpasswd-pbkdf2, entered a password, and the hash was displayed on screen. Then I ran vim.

Oops.

Vim filled the whole terminal, so my hash was no longer on the screen. I can't scroll up to see it. It's lost. I'm fine with running grub-mkpasswd-pbkdf2 again, but I want to be sure: is the hash I made before stored anywhere? In a file, or written to anywhere besides stdout? Is there any way to retrieve it without running grub-mkpasswd-pbkdf2 again with the same input? I want to make sure I delete all copies of it except where it's supposed to be, because I don't want it to leak.

Ubuntu documentation says "[grub-mkpasswd-pbkdf2] converts your desired password into a very long alphanumeric code which is placed in the GRUB 2 files." Where in the GRUB 2 files? I'm going hunting.

Thank you!


Viewing all articles
Browse latest Browse all 4421

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>