> if i execute 'echo "jonas:password" | chgpasswd', i get a prompt: > Password: > and after two seconds it terminates with the following error message: > chgpasswd: PAM authentication failed > > chgpasswd should not ask anything, as it's intended to be used in > scripts, and gets all information via stdin.
I suspect (without checking) that this could be related to the utility being PAMified. We currently don't use PAM for chpasswd in Debian and we probably should do so as well for chgpasswd. We're currently considering to re-enable PAM for all utilities, without, however, using a PAM configuration file for each. We will probably have all utilities use the same PAM configuration file than passwd. But that's another story...
signature.asc
Description: Digital signature