On Monday 2021-12-13 15:50, Thorsten Kukuk wrote:
On Mon, Dec 13, Jan Engelhardt wrote:
The upstream changelog of shadow 19990827 has this to say:
- added support for "usergroups" feature often found in Linux distributions (if USERGROUPS_ENAB in login.defs set to "yes", uid != 0, uid == gid, and username == groupname, then set umask to 002 instead of 022)
What "Linux distributions"?
Using USERGROUPS_ENAB: is there any Linux distribution except openSUSE/SUSE not doing it?
Not just Linux.. FreeBSD "adduser" command: usergroups behavior, apparently since 1995-03-08. OpenBSD has the same adduser source. Solaris/OmniOS/OpenIndiana "useradd": no usergroups. UnixWare 7.1 useradd: no usergroups. Haiku r1alpha2 (2010): no usergroups. busybox's "adduser": usergroups behavior, doing so since 2010. It's actually the only implementation I have seen to sets the sgid bit. Slackware 12.0 (2007) "adduser": no usergroups Slackware 12.0 "useradd" (shadow-4.0.3): no usergroups _despite_ USERGROUPS_ENAB yes being set in login.defs. Slackware 14.2 "useradd" (shadow-4.2.1): usergroups behavior RedHat Linux 2 & RHL5 (shadow-980403) useradd: usergroups behavior. It's actually the only implementation I have seen to use mode 0700. Caldera OpenLinux 3.1 (2001): like slackware 12.0 I found it to be fair to look at what now seem to be historic versions, before shadow propagated usergroups onto everyone.