[Pkg-shadow-devel] Bug#362453: passwd: useradd does not put the password into /etc/shadow

Ralf Hildebrandt ralf.hildebrandt at charite.de
Thu Apr 13 14:30:40 UTC 2006


Package: passwd
Version: 1:4.0.15-4
Severity: important


# userdel testhansel
# useradd -d /home/vpn -g vpnusers -s /bin/bash -p "$1$YeNsbWdH$6LnOIKo3IjXi6EYDLFa3E1" testhansel
# grep testhansel /etc/shadow
testhansel:LnOIKo3IjXi6EYDLFa3E1:13251:0:99999:7:::

This is only a SUBSTRING of the crypted password specified with -p:
"$1$YeNsbWdH$6LnOIKo3IjXi6EYDLFa3E1"
vs.
             "LnOIKo3IjXi6EYDLFa3E1"

Naturally, the user cannot log in using the passwort I crypted...
Where is the rest of my crypted password?

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages passwd depends on:
ii  debianutils                   2.15.5     Miscellaneous utilities specific t
ii  libc6                         2.3.6-5    GNU C Library: Shared libraries an
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-4 system login tools

passwd recommends no packages.

-- debconf information:
  passwd/root-password-crypted: (password omitted)
* passwd/root-password: (password omitted)
  passwd/user-password: (password omitted)
  passwd/user-password-crypted: (password omitted)
* passwd/root-password-again: (password omitted)
  passwd/user-password-again: (password omitted)
  passwd/password-mismatch:
  passwd/username:
  passwd/password-empty:
* passwd/make-user: false
* passwd/md5: true
  passwd/title:
  passwd/user-uid:
* passwd/shadow: true
  passwd/username-bad:
  passwd/user-fullname:




More information about the Pkg-shadow-devel mailing list