Alternative to passwd --stdin in Ubuntu
To set a user's password from the shell use chpasswd
:
echo "username:cleartext_password" | sudo chpasswd
To set a user's password from the shell use chpasswd
:
echo "username:cleartext_password" | sudo chpasswd