You could also use chpasswd:
echo username:new_password | chpasswd
so, you change password for user username to new_password.
You could also use chpasswd:
echo username:new_password | chpasswd
so, you change password for user username to new_password.