How to change a user password by a script

http://en.kioskea.net/faq/790-changing-password-via-a-script

The second method works for me.

Example:

echo “mario:pass123” | chpasswd

Advertisements