Re: [patch] document useradd behavior when run without the -g option

Johannes Winkelmann <[email protected]> Sun, 11 Jun 2006 23:09:06 +0200
Newsgroups gmane.linux.pld.shadow.general
Message-ID <[email protected]>
Hi,

On Sat, Jun 10, 2006 at 18:24:23 -0400, Mike Frysinger wrote:
> ok, sorry for the delay
> 
> attached is a patch that combines my and Johannes' work
Great; looks good to me.

> this new one has a bit more logic surrounding the nflg variable:
>  -1 -> default to yes from USERGROUPS_ENAB in login.defs
>  0 -> disabled
>  1 -> enabled via cmdline
> 
> the reason for this is to handle the case where USERGROUPS_ENAB is enabled by 
> default and the admin runs `useradd -g <gid> <user>` ... if we just set nflg 
> to USERGROUPS_ENAB, we'd trigger the mutual exclusion error message 
> with -n/-g
Good catch, didn't think of that.

Thanks for providing the, I'll update our build to use this one now.
Johannes
-- 
Johannes Winkelmann              mailto:[email protected]
Zurich, Switzerland              http://jw.smts.ch