(forw) Bug#294345: passwd: useradd does not create homedirs with "-" in the path

Christian Perrier <[email protected]> Wed, 9 Feb 2005 18:14:34 +0100
Newsgroups gmane.linux.pld.shadow.general
Message-ID <[email protected]>
Tomasz, this may be a good candidate for an upstream bug. Does it
still exist in 4.0.7?

Please follow the Reply-To field if possible.

----- Forwarded message from Ralf Hildebrandt <[email protected]> -----

Subject: Bug#294345: passwd: useradd does not create homedirs with "-" in
    the path
Reply-To: Ralf Hildebrandt <[email protected]>,
	[email protected]
From: Ralf Hildebrandt <[email protected]>
To: Debian Bug Tracking System <[email protected]>
X-Mailer: reportbug 3.2
Date: Wed, 09 Feb 2005 11:19:28 +0100

Package: passwd
Version: 1:4.0.3-30.8
Severity: normal


postamt:/home/t# /usr/sbin/useradd -m -d /home/x/-/testruebe testruebe
useradd: cannot create directory /home/x/-/testruebe

postamt:/home/t# /usr/sbin/useradd -m -d "/home/x/-/testruebe" testruebe
useradd: cannot create directory /home/x/-/testruebe

postamt:/home/t# /usr/sbin/useradd -m -d "/home/x/\-/testruebe" testruebe
useradd: cannot create directory /home/x/\-/testruebe

If I create the /home/x/- directory by hand, useradd works.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages passwd depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libpam-modules              0.76-22      Pluggable Authentication Modules f
ii  libpam0g                    0.76-22      Pluggable Authentication Modules l
ii  login                       1:4.0.3-30.8 System login tools

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


----- End forwarded message -----

--