Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905264 - =net-analyzer/gvmd-21.4.5-r5 Can't create GVM user, throws an error "Failed to create user: Invalid characters in user name"
Summary: =net-analyzer/gvmd-21.4.5-r5 Can't create GVM user, throws an error "Failed t...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: jonas.licht
URL: https://forum.greenbone.net/t/kali-ca...
Whiteboard:
Keywords: EBUILD, PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2023-04-29 00:46 UTC by Giuseppe Foti
Modified: 2023-07-03 08:17 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The patch file and the proposed -r6 ebuild (gvmd.tar.xz,1.98 KB, patch)
2023-04-29 00:46 UTC, Giuseppe Foti
Details | Diff
fixed patch to honor a second commit in github (gvmd-21.4.5-r6-fix-PCRE2-user-validation-regex.patch,4.64 KB, patch)
2023-05-01 09:50 UTC, Giuseppe Foti
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Giuseppe Foti 2023-04-29 00:46:21 UTC
Created attachment 860897 [details, diff]
The patch file and the proposed -r6 ebuild

Hi, I'm trying to setup Greenbone Vulnerability Management on gentoo following this guide: https://wiki.gentoo.org/wiki/Greenbone_Vulnerability_Management

When I try to create a new gvmd user with Admin role:
---
root #sudo -u gvm bash
user $gvmd --create-user=admin --role=Admin
---
I obtain:
---
Failed to create user: Invalid characters in user name
---

It seems GLib have switched from PCRE to PCRE2 and that the previously PCRE compatible regex used in gvmd for the user name validation functionality is not compatible with the PCRE2 functionality.

More info can be found here:
https://forum.greenbone.net/t/kali-cant-create-gvm-user-throws-an-error-failed-to-create-user-invalid-characters-in-user-name/13062/49

and here:
https://gitlab.gnome.org/GNOME/glib/-/issues/2760
https://bugs.kali.org/view.php?id=7926#c16764

I tested the attached patch and it seems to work.
Comment 1 Giuseppe Foti 2023-05-01 09:50:09 UTC
Created attachment 861000 [details, diff]
fixed patch to honor a second commit in github

Please don't use the previous patch