Changing the Linux user's password in one command
Chpasswd reads a list of user name and password pairs from standard input and uses this information to update a group of existing users
chpasswd - update passwords in batch mode
Syntax - user_name:password
By default the supplied password must be in clear-text. Also the password age will be updated, if present.
#echo user:password | /usr/sbin/chpasswd
Chpasswd reads a list of user name and password pairs from standard input and uses this information to update a group of existing users
chpasswd - update passwords in batch mode
Syntax - user_name:password
By default the supplied password must be in clear-text. Also the password age will be updated, if present.
#echo user:password | /usr/sbin/chpasswd