cannot add a user with username beginning with a number
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-control-center (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
The GUI to add a user in Ubuntu allows a username beginning with a number
(checked appears ok but call to user creation fails).
The reason is that the called Perl script adduser does not accept it. This script is configurable in /etc/adduser.conf:
# check user and group names also against this regular expression.
#NAME_REGEX=
As it is commented out, (same) value is taken from /usr/share/
$configref-
To solve this, you could:
- validate only names matching the expression.
- modify /etc/adduser.conf with another NAME_REGEX to fit Ubuntu's policies
(in this case, adduser would be affected, too).
Added to this, in a root terminal, adduser/passwd allow any password.
This GUI limits this possibility (for security matters, that is ok, but IMHO user creating an account from GUI should behave "like root").
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnome-control-
ProcVersionSign
Uname: Linux 5.3.0-42-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.12
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Fri Apr 24 11:59:24 2020
ExecutablePath: /usr/bin/
InstallationDate: Installed on 2020-03-10 (45 days ago)
InstallationMedia: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
SourcePackage: gnome-control-
UpgradeStatus: No upgrade log present (probably fresh install)
Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1630417, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.