Debian Bug report logs -
#604242
[patch] Allow dots in username by default
Reported by: Milan Bouchet-Valat <nalimilan@club.fr>
Date: Sun, 21 Nov 2010 11:57:02 UTC
Severity: wishlist
Found in version adduser/3.112
Done: Marc Haber <mh+debian-packages@zugschlus.de>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>:
Bug#604242; Package adduser.
(Sun, 21 Nov 2010 11:57:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Milan Bouchet-Valat <nalimilan@club.fr>:
New Bug report received and forwarded. Copy sent to Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>.
(Sun, 21 Nov 2010 11:57:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Package: adduser
Version: 3.112
I don't think there's a reason not to allow usernames to contain dots
(.), as they are also allowed to contain underscores (_) and dashes (-).
useradd accepts this.
Attached is a patch that makes dots be allowed just as other special
chars. One could also add the point in this line in /etc/adduser.conf:
#NAME_REGEX="^[a-z][-a-z0-9_]*\$"
but providing a patch for that makes the change harder to perform! ;-)
This fix would be appreciated for the gnome-system-tools, because
currently users-admin says dots are accepted, and this is false on
Debian. Saying dots are not allowed would be an issue because other
platforms allow for them, which means Debian should carry a specific
patch...
Original report in Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/gnome-system-tools/+bug/677929
[AdduserCommon.pm.diff (text/x-patch, attachment)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>:
Bug#604242; Package adduser.
(Sun, 21 Nov 2010 17:45:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Stephen Gran <sgran@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>.
(Sun, 21 Nov 2010 17:45:05 GMT) (full text, mbox, link).
Message #10 received at 604242@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
This one time, at band camp, Milan Bouchet-Valat said:
> I don't think there's a reason not to allow usernames to contain dots
> (.), as they are also allowed to contain underscores (_) and dashes (-).
> useradd accepts this.
>
> Attached is a patch that makes dots be allowed just as other special
> chars. One could also add the point in this line in /etc/adduser.conf:
> #NAME_REGEX="^[a-z][-a-z0-9_]*\$"
> but providing a patch for that makes the change harder to perform! ;-)
>
>
> This fix would be appreciated for the gnome-system-tools, because
> currently users-admin says dots are accepted, and this is false on
> Debian. Saying dots are not allowed would be an issue because other
> platforms allow for them, which means Debian should carry a specific
> patch...
- $configref->{"name_regex"} = "^[a-z][-a-z0-9_]*\$";
- $configref->{"name_regex_system"} = "^[A-Za-z][-A-Za-z0-9_]*\$";
+ $configref->{"name_regex"} = "^[a-z][-a-z0-9_.]*\$";
+ $configref->{"name_regex_system"} = "^[A-Za-z][-A-Za-z0-9_.]*\$";
That's a regex, so a bare . is almost certainly not what you want there.
Why does users-admin use adduser instead of useradd? It's not that
it shouldn't, but adduser is primarily designed as a policy compliant
method for maintainers to interface in a policy compliant way with user
management in maintainer scripts - extending it to be a general purpose
user management script for all manner of environments isn't what it's
aimed at, and I'm not convinced it will be a good thing to make it
general purpose. I think before changing the naming policy of adduser,
it does make sense to stop for a moment and check if you're using the
right tool for the job.
Cheers,
--
-----------------------------------------------------------------
| ,''`. Stephen Gran |
| : :' : sgran@debian.org |
| `. `' Debian user, admin, and developer |
| `- http://www.debian.org |
-----------------------------------------------------------------
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>:
Bug#604242; Package adduser.
(Sun, 21 Nov 2010 18:18:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Milan Bouchet-Valat <nalimilan@club.fr>:
Extra info received and forwarded to list. Copy sent to Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>.
(Sun, 21 Nov 2010 18:18:03 GMT) (full text, mbox, link).
Message #15 received at 604242@bugs.debian.org (full text, mbox, reply):
Le dimanche 21 novembre 2010 à 17:42 +0000, Stephen Gran a écrit :
> - $configref->{"name_regex"} = "^[a-z][-a-z0-9_]*\$";
> - $configref->{"name_regex_system"} = "^[A-Za-z][-A-Za-z0-9_]*\$";
> + $configref->{"name_regex"} = "^[a-z][-a-z0-9_.]*\$";
> + $configref->{"name_regex_system"} = "^[A-Za-z][-A-Za-z0-9_.]*\$";
>
> That's a regex, so a bare . is almost certainly not what you want there.
Indeed, kind of silly. Of course, we need to escape it...
> Why does users-admin use adduser instead of useradd? It's not that
> it shouldn't, but adduser is primarily designed as a policy compliant
> method for maintainers to interface in a policy compliant way with user
> management in maintainer scripts - extending it to be a general purpose
> user management script for all manner of environments isn't what it's
> aimed at, and I'm not convinced it will be a good thing to make it
> general purpose. I think before changing the naming policy of adduser,
> it does make sense to stop for a moment and check if you're using the
> right tool for the job.
AFAIK, users-admin has always used adduser on Debian systems, I guess
with the idea that it will more likely to what the admin wants, since
settings from /etc/adduser.conf will be used. But this also brings many
issues, because we can never be sure what adduser is going to do, nor if
it will fail (the present bug being a good example).
Anyway, users-admin is being replaced with accounts-dialog in GNOME, so
I'm not going to change the way it works. And accounts-dialog uses
useradd (it was mainly designed for Fedora originally), and I guess
that's what we'll want to keep for Debian too, but that creates other
problems (like: how do you choose where to create home directories? what
if people create accounts using adduser once, and accounts-dialog the
other?).
The current bug should also IMHO be fixed for adduser itself,
disregarding the fact that users-admin needs it. I can't find a reason
why dots shouldn't be allowed, and they can be pretty convenient for
some naming conventions (e.g. firstname.lastname)
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>:
Bug#604242; Package adduser.
(Wed, 23 Nov 2011 10:15:03 GMT) (full text, mbox, link).
Acknowledgement sent
to Marc Haber <mh+debian-packages@zugschlus.de>:
Extra info received and forwarded to list. Copy sent to Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>.
(Wed, 23 Nov 2011 10:15:06 GMT) (full text, mbox, link).
Message #20 received at 604242@bugs.debian.org (full text, mbox, reply):
severity 604242 wishlist
thanks
On Sun, Nov 21, 2010 at 07:14:36PM +0100, Milan Bouchet-Valat wrote:
> The current bug should also IMHO be fixed for adduser itself,
> disregarding the fact that users-admin needs it. I can't find a reason
> why dots shouldn't be allowed, and they can be pretty convenient for
> some naming conventions (e.g. firstname.lastname)
Having dots in the user name creates some issues with scipts using
chown, which still accepts dots as separator between user name and
group name. If chown still accepts dots, there will be scripts using
this notation, which will break if a user name contains a dot.
I would recommend keeping the current default (which can be
overwritten by local configuration) until chown has stopped accepting
dots as separator.
IMO, chown compatibility and not breaking third-party scripts is more
important than being consistent with some graphical front-end's
documentation.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 31958061
Nordisch by Nature | How to make an American Quilt | Fax: *49 621 31958062
Severity set to 'wishlist' from 'normal'
Request was from Marc Haber <mh+debian-packages@zugschlus.de>
to control@bugs.debian.org.
(Wed, 23 Nov 2011 10:15:17 GMT) (full text, mbox, link).
Message sent on
to Milan Bouchet-Valat <nalimilan@club.fr>:
Bug#604242.
(Wed, 23 Nov 2011 10:15:54 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>:
Bug#604242; Package adduser.
(Wed, 23 Nov 2011 12:12:11 GMT) (full text, mbox, link).
Acknowledgement sent
to Milan Bouchet-Valat <nalimilan@club.fr>:
Extra info received and forwarded to list. Copy sent to Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>.
(Wed, 23 Nov 2011 12:12:47 GMT) (full text, mbox, link).
Message #30 received at 604242@bugs.debian.org (full text, mbox, reply):
users-admin has been replaced with a gnome-control-center applet in
GNOME 3, and it uses useradd, so I don't really care now. Feel free to
close the bug.
(Note though that useradd seems to allow dots in usernames on most
platforms, which probably suffer from the same potential problems as
Debian.)
Information stored
:
Bug#604242; Package adduser.
(Wed, 23 Nov 2011 12:14:23 GMT) (full text, mbox, link).
Acknowledgement sent
to Milan Bouchet-Valat <nalimilan@club.fr>:
Extra info received and filed, but not forwarded.
(Wed, 23 Nov 2011 12:15:14 GMT) (full text, mbox, link).
Message sent on
to Milan Bouchet-Valat <nalimilan@club.fr>:
Bug#604242.
(Wed, 23 Nov 2011 12:15:50 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>:
Bug#604242; Package adduser.
(Wed, 28 Oct 2015 14:27:03 GMT) (full text, mbox, link).
Acknowledgement sent
to "Interfax" <incoming@interfax.net>:
Extra info received and forwarded to list. Copy sent to Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>.
(Wed, 28 Oct 2015 14:27:03 GMT) (full text, mbox, link).
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>:
Bug#604242; Package adduser.
(Wed, 25 Jan 2017 02:45:03 GMT) (full text, mbox, link).
Acknowledgement sent
to "USPS Home Delivery" <cody.peters@creativecam.nl>:
Extra info received and forwarded to list. Copy sent to Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>.
(Wed, 25 Jan 2017 02:45:03 GMT) (full text, mbox, link).
Marked Bug as done
Request was from Marc Haber <mh+debian-packages@zugschlus.de>
to control@bugs.debian.org.
(Tue, 08 Mar 2022 08:15:05 GMT) (full text, mbox, link).
Notification sent
to Milan Bouchet-Valat <nalimilan@club.fr>:
Bug acknowledged by developer.
(Tue, 08 Mar 2022 08:15:06 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Wed, 06 Apr 2022 07:25:24 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Jul 1 21:05:57 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.