I want change 120 user's password. so I wrote sudo echo 'user:passwd' | chpasswdbut I had a message, chpasswd: (user) pam_chauthtok() failed, error:Authentication token manipulation errorchpaswd (line 1, user) password not changedand also I tried another way using textfile, but I had same the message.I can't solve this problem.
I can't change user's passwd on ubuntu
linux;bash;ubuntu;password
The usual way to change the password is to use the passwd(1) command.If you want to use chpasswd(8) or usermod(8) you shoould carefully RTFM.Be sure that the given password is compatible with the system configuration. And sudo should apply to the chpasswd command, so you probably wantecho 'user:passwd' | sudo chpasswdIn your case sudo echo 'user:passwd' | chpasswd the sudo is applied only to echo, which is incorrect.