Gentoo Archives: gentoo-user

From: Etaoin Shrdlu <shrdlu@×××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] pam limits
Date: Thu, 25 Oct 2007 12:31:06
Message-Id: 200710251425.03520.shrdlu@unlimitedmail.org
In Reply to: Re: [gentoo-user] pam limits by Albert Hopkins
1 On Thursday 25 October 2007, Albert Hopkins wrote:
2
3 > Oh do they do that now? That was that nasty Red Hat extension.
4
5 While one might agree or disagree about that, IMHO the problem now is
6 that the options in /etc/default/useradd are ignored. If I run
7 useradd -D it shows GROUP=100, but running useradd <username> still
8 creates a new group named after the user and puts the user into it.
9
10 After a little search, it seems that the USERGROUPS_ENAB directive
11 in /etc/login.defs, although not explicitly mentioning this issue, is
12 the culprit. Setting it to "no" restores the old behavior (putting the
13 new users into group "users").
14
15 Alternatively, looking at the various patches, it seems that a new option
16 exists (-n), which seems to be the default when -g is not given, that is
17 not documented in the man page (to see it, "useradd --help" must be
18 used). This is another case where man pages are not in sync with changes
19 introduced by patches. Should a bug be opened for this?
20 --
21 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] pam limits Etaoin Shrdlu <shrdlu@×××××××××××××.org>
Re: [gentoo-user] [SOLVED] pam limits Daniel Iliev <daniel.iliev@×××××.com>