[Pkg-shadow-devel] Bug#344189: marked as done (useradd: accept accent in username but adduser does not)

Debian Bug Tracking System owner at bugs.debian.org
Tue Dec 20 21:18:16 UTC 2005


Your message dated Tue, 20 Dec 2005 22:04:03 +0100
with message-id <20051220210403.GE10427 at djedefre.onera>
and subject line [Pkg-shadow-devel] Bug#344189: useradd: accept accent in username but adduser does not
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 20 Dec 2005 19:19:15 +0000
>From thoane at altern.org Tue Dec 20 11:19:15 2005
Return-path: <thoane at altern.org>
Received: from ip-51.net-81-220-108.rev.numericable.fr ([81.220.108.51] helo=bihash)
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1Eon10-000443-PM
	for submit at bugs.debian.org; Tue, 20 Dec 2005 11:19:15 -0800
Received: by bihash (Postfix, from userid 1000)
	id 56A011437E6; Tue, 20 Dec 2005 20:19:11 +0100 (CET)
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
From: Ashar Voultoiz <thoane at altern.org>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: useradd: accept accent in username but adduser does not
Message-ID: <20051220191911.26992.33594.reportbug at bihash>
X-Mailer: reportbug 3.18
Date: Tue, 20 Dec 2005 20:19:11 +0100
Content-Transfer-Encoding: quoted-printable
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-7.5 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	RCVD_IN_SORBS autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: passwd
Version: 1:4.0.13-7
Severity: important


Hello,

I was wondering if a username like '=C3=A9toile' could be added so
I did:

# useradd =C3=A9toile
#

Then checked:

$ grep =C3=A9toile /etc/passwd
=C3=A9toile:x:1003:100::/home/=C3=A9toile:/bin/sh
$

Good ! But the home directory doesnt exit:

$ ll /home/ | grep toile
$

So i deleted it:

# userdel =C3=A9toile
#


Then I remembered about the 'adduser' command:

# adduser =C3=A9toile
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=3Dfr_FR.UTF-8, LC_CTYPE=3Dfr_FR.UTF-8 (charmap=3DUTF-8)

Versions of packages passwd depends on:
ii  debianutils                   2.15.1     Miscellaneous utilities spec=
ific t
ii  libc6                         2.3.5-8    GNU C Library: Shared librar=
ies an
ii  libpam-modules                0.79-3     Pluggable Authentication Mod=
ules f
ii  libpam0g                      0.79-3     Pluggable Authentication Mod=
ules 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:

---------------------------------------
Received: (at 344189-done) by bugs.debian.org; 20 Dec 2005 21:04:39 +0000
>From bubulle at kheops.frmug.org Tue Dec 20 13:04:39 2005
Return-path: <bubulle at kheops.frmug.org>
Received: from perrier.eu.org ([81.56.227.253] helo=kheops.perrier.eu.org)
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1Eoof1-00030g-Iq
	for 344189-done at bugs.debian.org; Tue, 20 Dec 2005 13:04:39 -0800
Received: from localhost (localhost [127.0.0.1])
	by kheops.perrier.eu.org (Postfix) with ESMTP id 3AD8E4F975;
	Tue, 20 Dec 2005 22:04:05 +0100 (CET)
Received: from kheops.perrier.eu.org ([127.0.0.1])
	by localhost (kheops [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 01228-08; Tue, 20 Dec 2005 22:04:04 +0100 (CET)
Received: from mykerinos.kheops.frmug.org (mykerinos.kheops.frmug.org [192.168.1.3])
	by kheops.perrier.eu.org (Postfix) with ESMTP id 75A0F4F899;
	Tue, 20 Dec 2005 22:04:04 +0100 (CET)
Received: by mykerinos.kheops.frmug.org (Postfix, from userid 1000)
	id 2474640AE6C; Tue, 20 Dec 2005 22:04:03 +0100 (CET)
Date: Tue, 20 Dec 2005 22:04:03 +0100
From: Christian Perrier <bubulle at debian.org>
To: Ashar Voultoiz <thoane at altern.org>, 344189-done at bugs.debian.org
Subject: Re: [Pkg-shadow-devel] Bug#344189: useradd: accept accent in username but adduser does not
Message-ID: <20051220210403.GE10427 at djedefre.onera>
References: <20051220191911.26992.33594.reportbug at bihash>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
In-Reply-To: <20051220191911.26992.33594.reportbug at bihash>
User-Agent: Mutt/1.5.11
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at kheops.frmug.org
Content-Transfer-Encoding: quoted-printable
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02


> Then I remembered about the 'adduser' command:
>=20
> # adduser =E9toile
> adduser: To avoid problems, the username should consist of
> letters, digits, underscores, periods and dashes. For compatibility wit=
h
> Samba machine accounts $ is also supported at the end of the username
> #
>=20
> 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 ?


useradd is a lower level utility than adduser (which is a Debian
specific program while useradd isn't). So, this behaviour is
completely on purpose.

Debian's policy (or, better, Debian Technical Comittee advice) is more
strict than what's permitted by a utility such as useradd which has a
wider audience.





More information about the Pkg-shadow-devel mailing list