-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some systems have stricter regex for valid usernames #62
Comments
Please run |
On Ubuntu 22.04, after adding a user with User Name "test" and Full Name "Test" I am getting If I try to add a user "Test"/"Test" instead of "test"/"Test" I am getting this error message and no user is added: |
I don't have |
I can now confirm that the behavior is the same on Debian 12 and Ubuntu 22.04: they both seem to be calling Running |
This Debian patch may explain why |
Thank you for your detailed explanation. I will try to fix this issue |
Thank you for your prompt replies. A patch to the Debian package has now been suggested, since the problem was created by a Debian modification to |
I came up with some tentative suggestions to fix the issue, but maybe someone with |
On Debian and Ubuntu, uppercase letters and the dot symbol '.' are not valid User Name characters. So in some cases the User Name will pass the check but user creation will still fail.
user-admin/src/user-admin.c
Lines 290 to 295 in 094986c
In Ubuntu 22.04 /etc/adduser.conf has
#NAME_REGEX="^[a-z][-a-z0-9_]*\$"
The text was updated successfully, but these errors were encountered: