Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Script to generate salted SHA512 /etc/shadow password on/for Ubuntu 12.04 LTS
read -p "Enter username: " username
read -s -p "Enter password: " mypassword
echo -n $username:$mypassword | chpasswd -S -c SHA512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.