Fully numeric usernames in Focal

Victor Tapia victor.tapia at canonical.com
Tue May 4 10:43:57 UTC 2021


Hi,

Thanks for your feedback Julian. I've opened a bug[1] and will prepare a
patch to error out the creation of fully numeric names (can still be
overridden using the --badnames parameter)

Kind regards,

Victor

[1] https://bugs.launchpad.net/ubuntu/+source/shadow/+bug/1927078

On Tue, Apr 20, 2021 at 12:48 PM Julian Andres Klode <
julian.klode at canonical.com> wrote:

> On Thu, Apr 08, 2021 at 06:58:36PM +0200, Victor Tapia wrote:
> > Hi,
> >
> > While reviewing a bug in Focal I noticed that useradd allows the creation
> > of fully numeric usernames[1] but systemd does not like them[2]. This
> > triggers issues in apps relying on systemd, such as gnome/gdm (returns to
> > gdm after authenticating). For instance, after creating user 0, the user
> > can log in via ssh or console but loginctl won't create a session for it:
>
> It seems like a good idea to make useradd error out on such usernames
> too, I suppose.
>
>
> --
> debian developer - deb.li/jak | jak-linux.org - free software dev
> ubuntu core developer                              i speak de, en
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20210504/a386121d/attachment.html>


More information about the ubuntu-devel mailing list