[Pkg-shadow-devel] Bug#369439: chgpasswd terminates after asking for a password

Jonas Meurer mejo at debian.org
Mon May 29 19:10:03 UTC 2006


Package: passwd
Version: 1:4.0.15-10
Severity: normal

hello,

unfortunately, the new chgpasswd tool does not work as expected.
according to docs and it's model 'chpasswd' it reads a string with the
format "group_name:password" from standard input.
obviously, this does not work.

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 am the one who initially submitted chgpasswd to you, and as far as i
remember, you forwarded it to upstream who added it to the shadow/passwd
package. i'm pretty sure that the original version (which was written by
wesley terpstra) worked.

wesley, do you have a copy of the chgpasswd.c that you submitted to me?

...
 jonas

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-rc3-1-amd64-resivo
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages passwd depends on:
ii  debianutils                  2.16.1      Miscellaneous utilities specific t
ii  libc6                        2.3.6-10    GNU C Library: Shared libraries
ii  libpam-modules               0.79-3.1    Pluggable Authentication Modules f
ii  libpam0g                     0.79-3.1    Pluggable Authentication Modules l
ii  libselinux1                  1.30-1      SELinux shared libraries
ii  login                        1:4.0.15-10 system login tools

passwd recommends no packages.

-- debconf information:
  passwd/password-mismatch:
* passwd/username: jonas
  passwd/password-empty:
  passwd/md5: false
  passwd/user-uid:
  passwd/shadow: true
  passwd/username-bad:
* passwd/user-fullname: jonas
  passwd/make-user: true
  passwd/title:




More information about the Pkg-shadow-devel mailing list