Bug#1101196: installation-reports: Trixie Installer fails to create first user when full name contains non-ASCII characters and spaces
On Fri, May 02, 2025 at 10:42:54PM +0200, Pascal Hambourg wrote:
On 30/03/2025 at 09:23, Marc Haber wrote:
On Wed, Mar 26, 2025 at 08:54:09PM +0100, Pascal Hambourg wrote:
On 24/03/2025 at 20:29, Cyril Brulebois wrote:
Oh wow, that's indeed badly broken, and will need fixing before the next
release. Reproduced locally with a 'û' in my last name:
(...)
IIUC adduser's new sanitation regex for the 'comment' (ex-gecos)
value) is defined by:
commentre => qr/["-_\.+!\$%&()\]\[;0-9a-zA-Z\/ ]*/
It looks like only ASCII characters are allowed.
(...)
I am open to changing that regexp in adduser. (...)
Possible options may include:
- align adduser's comment sanitation regex on useradd
Yes. That would be the way to go. I am open for suggestions. We
should probably allow the complete UTF-8 range (short of control
characters) here.
Is there any update on this topic ? Can we still expect a change in
adduser before Trixie release ?
If somebody suggests a regexp to allow, of course.
The Infrastructure is in place, it's a one-line change (commentre in
AdduserCommon.pm). Sadly, that re cannot be overriden at runtime.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
Reply to: