Last Updated: February 25, 2016
·
636
· cwgem

For most linux systems, random password for a user

usermod -p $(mkpasswd -m sha-512 $(openssl rand -base64 32)) user