]> git.ipfire.org Git - thirdparty/shadow.git/commit
shadow: use relaxed usernames
authorAlexander Kanavin <alex@linutronix.de>
Tue, 16 Aug 2022 11:46:22 +0000 (13:46 +0200)
committerSerge Hallyn <serge@hallyn.com>
Sat, 3 Sep 2022 01:27:14 +0000 (20:27 -0500)
commitcfc981df2afc615e3792b918e9ee49e631b0a3a9
tree92b06736a0e5132e7fc4bbccfdf4dd9454d35d6e
parent9e1c0ffef4e8e2e8d29ef29975cca93cba4a21a3
shadow: use relaxed usernames

The groupadd from shadow does not allow upper case group names, the
same is true for the upstream shadow. But distributions like
Debian/Ubuntu/CentOS has their own way to cope with this problem,
this patch is picked up from Fedora [1] to relax the usernames
restrictions to allow the upper case group names, and the relaxation is
POSIX compliant because POSIX indicate that usernames are composed of
characters from the portable filename character set [A-Za-z0-9._-].

[1] https://src.fedoraproject.org/rpms/shadow-utils/blob/rawhide/f/shadow-4.8-goodname.patch

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
libmisc/chkname.c
man/groupadd.8.xml
man/useradd.8.xml