Date: April 7, 2005
The "chpasswd" command is easier to use than "passwd" when setting a list of user passwords. It can be used from the command line or shell script. For example, to change passwords for users listed in a file, type the following
cat mypasswords | chpasswd
Where the mypasswords file contains
user1:password1 user2:password2 ......
For more information see the following URL
April 7, 2005