[Pkg-shadow-devel] Bug#344189: useradd: accept accent in username
but adduser does not
Ashar Voultoiz
thoane at altern.org
Tue Dec 20 19:19:11 UTC 2005
Package: passwd
Version: 1:4.0.13-7
Severity: important
Hello,
I was wondering if a username like 'étoile' could be added so
I did:
# useradd étoile
#
Then checked:
$ grep étoile /etc/passwd
étoile:x:1003:100::/home/étoile:/bin/sh
$
Good ! But the home directory doesnt exit:
$ ll /home/ | grep toile
$
So i deleted it:
# userdel étoile
#
Then I remembered about the 'adduser' command:
# adduser étoile
adduser: To avoid problems, the username should consist of
letters, digits, underscores, periods and dashes. For compatibility with
Samba machine accounts $ is also supported at the end of the username
#
So looks like we have something inconsistent! I would expect useradd
to give an error message just like adduser does. Or adduser should not
give an error message ?
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing'), (99, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-k7
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Versions of packages passwd depends on:
ii debianutils 2.15.1 Miscellaneous utilities specific t
ii libc6 2.3.5-8 GNU C Library: Shared libraries an
ii libpam-modules 0.79-3 Pluggable Authentication Modules f
ii libpam0g 0.79-3 Pluggable Authentication Modules l
ii login 1:4.0.13-7 system login tools
passwd recommends no packages.
-- debconf information:
passwd/password-mismatch:
* passwd/username: hashar
passwd/password-empty:
* passwd/md5: true
passwd/user-uid:
* passwd/shadow: true
passwd/username-bad:
* passwd/user-fullname: Ashar Voultoiz
* passwd/make-user: true
passwd/title:
More information about the Pkg-shadow-devel
mailing list