Skip to content

Conversation

@jandubois
Copy link
Member

@jandubois jandubois commented Sep 15, 2021

This PR expands on #214.

The useradd utility uses a more restrictive pattern than the containerd identifiers.Validate() function: https://github.com/shadow-maint/shadow/blob/26bbee8/libmisc/chkname.c#L51-L78

Also a fully numeric username seems to break systemd/cloud-init, as /run/user/$UID/systemd/private is never created.

Note that this PR will also disallow the firstname.lastname usernames.

Fixes #235

@jandubois jandubois added the bug Something isn't working label Sep 15, 2021
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Waiting for the essential requirement 1 of 4: "ssh"

2 participants