Software >> OS >> Unix >> Linux >> commands >> chpasswd >> How to change user password non interactively using chpasswd

 

echo "username:newpass"|chpasswd

e.g.

echo "jdoe:MyPassword1234" | chpasswd