[2013-12-04 22:12:40 -0600] David C. Rankin: > One question though, the USERGROUPS_ENAB flag seems self-explanatory, but the > comments above the flag say: > > # > # Enable setting of the umask group bits to be the same as owner bits > # (examples: 022 -> 002, 077 -> 007) for non-root users, if the uid is > # the same as gid, and username is the same as the primary group name. > # > # This also enables userdel to remove user groups if no members exist. > # > > So, in addition to insuring umask group bits are the same as owner bits for > non-root users, this setting controls whether new users are automatically added > to the 'users' group by default with useradd? See the man page to useradd: "If not specified, the behavior of useradd will depend on the USERGROUPS_ENAB variable in /etc/login.defs. If this variable is set to yes (or -U/--user-group is specified on the command line), a group will be created for the user, with the same name as her loginname. If the variable is set to no (or -N/--no-user-group is specified on the command line), useradd will set the primary group of the new user to the value specified by the GROUP variable in /etc/default/useradd, or 100 by default." -- Gaetan
Attachment:
pgpmvrm6ufJ88.pgp
Description: PGP signature