Re: primary group in useradd >= 4.0.14

"Dan Nicholson" <[email protected]> Fri, 7 Apr 2006 06:45:10 -0700
Newsgroups gmane.linux.pld.shadow.general
Message-ID <[email protected]>
On 4/7/06, Johannes Winkelmann <[email protected]> wrote:
>
> The LFS guys just invert nflg (which seems sensible, even though the
> code then has no effect):
>   http://wiki.linuxfromscratch.org/patches/browser/trunk/shadow/shadow-4.0.14-useradd_addgroup-1.patch?rev=1416

Actually, that patch isn't used in any of the books.  Occasionally,
patches will be checked in that people find useful.  I doubt it has
seen use by more than a few people.  Most see the same useradd
behavior you describe, and it just bit me yesterday.  Just wanted to
be clear about that.

> I personally would prefer to have a '-n' option which would create a
> private group per user and otherwise using the defaults from
> /etc/default/useradd (or shadows internal ones) like before .14, however
> this would obviously make it act differently than RedHat's version.

That would be a nice option to have.

--
Dan