Re: [patch] document useradd behavior when run without the -g option
Mike Frysinger <[email protected]> Fri, 7 Apr 2006 21:46:14 -0400
| Newsgroups | gmane.linux.pld.shadow.general |
|---|---|
| Organization | wh0rd.org |
| Message-ID | <[email protected]> |
On Friday 07 April 2006 20:27, Mike Frysinger wrote: > a user submitted a bug that useradd behaved "incorrectly" when run with the > -G option but not the -g option another user mentioned that perhaps useradd could check the setting of USERGROUPS_ENAB in login.defs to determine the behavior: - if USERGROUPS_ENAB is disabled and -G is used, then useradd should behave as if the first group passed to -G was given to -g # useradd -G gfoo,gfoo2 ufoo should act the same as # useradd -G gfoo,gfoo2 -g gfoo ufoo - if USERGROUPS_ENAB is enabled or -G is not used, then the current behavior remains the same doesnt matter to me either way, just passing along some interesting ideas -mike