[Bug 1205783] YaST:Head/yast2-users: Cannot create new user groups via YaST on new installations

https://bugzilla.suse.com/show_bug.cgi?id=1205783 https://bugzilla.suse.com/show_bug.cgi?id=1205783#c9 --- Comment #9 from Stefan Hundhammer <shundhammer@suse.com> --- OK, this is weird: 2022-11-30 13:45:29 <2> tumbleweed-pc(3913) [Perl] modules/Users.pm(Users::CheckGroupname):5027 groupname testgroup doesn't match to 2022-11-30 13:45:31 <2> tumbleweed-pc(3913) [Perl] modules/Users.pm(Users::CheckGroupname):5027 groupname testgroup doesn't match to 2022-11-30 13:45:33 <2> tumbleweed-pc(3913) [Perl] modules/Users.pm(Users::CheckGroupname):5027 groupname testgroup doesn't match to Where it SHOULD also log the character class: https://github.com/yast/yast-users/blob/master/src/modules/Users.pm#L5027 y2warning ("groupname $groupname doesn't match to $character_class"); i.e. that $character_class is empty (!), so of course it doesn't match. It's defined here: https://github.com/yast/yast-users/blob/master/src/modules/Users.pm#L172 my $character_class = "[[:alpha:]_][[:alnum:]_.-]*[[:alnum:]_.\$-]\\?"; which *might* be influenced by the current locale settings; or if that locale isn't installed at all or not correctly, it might possibly be empty. That initial value is overwritten later with data from (AFAICS) /etc/login.defs: https://github.com/yast/yast-users/blob/master/src/modules/Users.pm#L1345-L1... $character_class = ShadowConfig->fetch("CHARACTER_CLASS"); if ($character_class) { UsersSimple->SetCharacterClass ($character_class); } which look OK on my system: % grep '^CHARACTER_CLASS' /etc/login.defs CHARACTER_CLASS [ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_][ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-]*[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.$-]\? How about your system? Is that file there? Does that CHARACTER_CLASS entry look OK? -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com