Passwd
From Bashlinux
passwd
How to setup user password from command line with no user interaction
Just run the command
echo user:password | chpasswd
Note that user and password should be in plain text
Just run the command
echo user:password | chpasswd
Note that user and password should be in plain text