I wanted to generate a password hash for use in the /etc/shadow file. My local Linux Mint (Ubuntu) Desktop already has mkpasswd available, your distribution may vary.
mkpasswd -m SHA-512
This prompts for the password and will generate the hash.
Red Branch | For Future Reference …
I wanted to generate a password hash for use in the /etc/shadow file. My local Linux Mint (Ubuntu) Desktop already has mkpasswd available, your distribution may vary.
mkpasswd -m SHA-512
This prompts for the password and will generate the hash.
Will this save my password to bash history?
No Babis as you are prompted for the password. But you could always run:
unset HISTFILE
before running any commands you don’t want recorded in your history file. Talk soon, jonny