Trying to add a user with mate-user-admin may fail due to invalid username
When adding a user, mate-user-admin assumes that useradd
will be called and checks the username string based on what useradd
accepts. But then adduser
is called and the username may still be rejected due to the stricter NAME_REGEX in /etc/adduser.conf, triggering this error message: running '/usr/sbin/adduser' failed: Child process exited with code 1
.
It looks like accountsservice
was patched by Debian to use adduser
instead of useradd
:
https://sources.debian.org/patches/accountsservice/22.08.8-6/0002-create-and-manage-groups-like-on-a-debian-system.patch
- Screenshot: https://trisquel.info/files/Screenshot%20at%202024-03-02%2012-25-34.png
- Upstream report: https://github.com/zhuyaliang/user-admin/issues/62
- Debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1065773