Fully numeric usernames in Focal

Julian Andres Klode julian.klode at canonical.com
Tue Apr 20 10:48:25 UTC 2021


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



More information about the ubuntu-devel mailing list