[arch-general] New users not automatically added to 'users' group if -g default group specified?

Gaetan Bisson bisson at archlinux.org
Wed Dec 4 23:48:16 EST 2013

[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."

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 230 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20131204/21403696/attachment.asc>

More information about the arch-general mailing list