I can confirm this bug. I just came across this on Ubuntu 20.04. I
prefer the proposal by Laurent Martelli.
Summarizing the discussion, it looks like this bug can be fixed by
simply replacing the line
#NAME_REGEX="^[a-z][-a-z0-9_]*\$"
in adduser.conf by
#NAME_REGEX="^[a-z][-a-z0-9_]*$"
I'm writing to confirm this is a bug. I just ran into it in Ubuntu
12.04 upon uncommenting NAME_REGEX.
The existing regex requres the user name have a dollar sign in it. The
proposed regex works properly.
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
Hi,
thanks for the response, I give update information below.
Στις 24-07-2011, ημέρα Κυρ, και ώρα 14:22 +0100, ο/η Stephen Gran
έγραψε:
...
# check user and group names also against this regular expression.
- -#NAME_REGEX=^[a-z][-a-z0-9_]*\$
+#NAME_REGEX=^[a-z][-a-z0-9_]*\$?$
This
tags -patch
thanks
Hi,
This one time, at band camp, Georgios M. Zarkadas said:
The default value of variable NAME_REGEX shipped within the package's file
/usr/share/adduser/adduser.conf (which is copied upon installation to
etc/adduser.conf) is incorrect.
current value / should-be value
Package: adduser
Version: 3.112+nmu2
Severity: normal
Tags: patch
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
The default value of variable NAME_REGEX shipped within the package's file
/usr/share/adduser/adduser.conf (which is copied upon installation to
etc/adduser.conf) is incorrect.
5 matches
Mail list logo