* Re: [gentoo-user] pam limits
2007-10-25 11:45 ` Albert Hopkins
@ 2007-10-25 12:25 ` Etaoin Shrdlu
2007-10-25 12:31 ` Etaoin Shrdlu
2007-10-25 12:47 ` [gentoo-user] [SOLVED] " Daniel Iliev
2007-10-25 12:31 ` [gentoo-user] " Daniel Iliev
` (2 subsequent siblings)
3 siblings, 2 replies; 15+ messages in thread
From: Etaoin Shrdlu @ 2007-10-25 12:25 UTC (permalink / raw
To: gentoo-user
On Thursday 25 October 2007, Albert Hopkins wrote:
> Oh do they do that now? That was that nasty Red Hat extension.
While one might agree or disagree about that, IMHO the problem now is
that the options in /etc/default/useradd are ignored. If I run
useradd -D it shows GROUP=100, but running useradd <username> still
creates a new group named after the user and puts the user into it.
After a little search, it seems that the USERGROUPS_ENAB directive
in /etc/login.defs, although not explicitly mentioning this issue, is
the culprit. Setting it to "no" restores the old behavior (putting the
new users into group "users").
Alternatively, looking at the various patches, it seems that a new option
exists (-n), which seems to be the default when -g is not given, that is
not documented in the man page (to see it, "useradd --help" must be
used). This is another case where man pages are not in sync with changes
introduced by patches. Should a bug be opened for this?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] pam limits
2007-10-25 12:25 ` Etaoin Shrdlu
@ 2007-10-25 12:31 ` Etaoin Shrdlu
2007-10-25 12:47 ` [gentoo-user] [SOLVED] " Daniel Iliev
1 sibling, 0 replies; 15+ messages in thread
From: Etaoin Shrdlu @ 2007-10-25 12:31 UTC (permalink / raw
To: gentoo-user
On Thursday 25 October 2007, Etaoin Shrdlu wrote:
> After a little search, it seems that the USERGROUPS_ENAB directive
> in /etc/login.defs, although not explicitly mentioning this issue, is
> the culprit. Setting it to "no" restores the old behavior (putting the
> new users into group "users").
Found bug #128715 about the issue, apparently "fixed" but not stating
clearly what the correct behavior should be.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] [SOLVED] pam limits
2007-10-25 12:25 ` Etaoin Shrdlu
2007-10-25 12:31 ` Etaoin Shrdlu
@ 2007-10-25 12:47 ` Daniel Iliev
1 sibling, 0 replies; 15+ messages in thread
From: Daniel Iliev @ 2007-10-25 12:47 UTC (permalink / raw
To: gentoo-user
On Thu, 25 Oct 2007 14:25:03 +0200
Etaoin Shrdlu <shrdlu@unlimitedmail.org> wrote:
> On Thursday 25 October 2007, Albert Hopkins wrote:
>
> > Oh do they do that now? That was that nasty Red Hat extension.
>
> While one might agree or disagree about that, IMHO the problem now is
> that the options in /etc/default/useradd are ignored. If I run
> useradd -D it shows GROUP=100, but running useradd <username> still
> creates a new group named after the user and puts the user into it.
>
Exactly my point! :)
You were ahead of me with this reply, but it came here after I sent my
previous message. Sorry for the noise and redundancy.
> After a little search, it seems that the USERGROUPS_ENAB directive
> in /etc/login.defs, although not explicitly mentioning this issue, is
> the culprit. Setting it to "no" restores the old behavior (putting
> the new users into group "users").
>
Big thanks!
That's exactly what I needed. ;-))))
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] pam limits
2007-10-25 11:45 ` Albert Hopkins
2007-10-25 12:25 ` Etaoin Shrdlu
@ 2007-10-25 12:31 ` Daniel Iliev
2007-10-25 12:37 ` Daniel Iliev
2007-10-25 22:02 ` Florian Philipp
3 siblings, 0 replies; 15+ messages in thread
From: Daniel Iliev @ 2007-10-25 12:31 UTC (permalink / raw
To: gentoo-user
On Thu, 25 Oct 2007 06:45:49 -0500
Albert Hopkins <marduk@letterboxes.org> wrote:
> >
> > Now that the behaviour of "useradd -m xyz" has changed from putting
> > the newuser in group "users" ("xyz:users") to putting the user in a
> > group with same name ("xyz:xyz") I would appreciate any advice on
> > getting the old behavior back or any workaround to achieve the same
> > goal - all users should be limited by default at creation time.
>
> Oh do they do that now? That was that nasty Red Hat extension.
> Nevertheless, override the default behavior:
>
> # useradd -m -g users xyz
>
>
>
> --
> Albert W. Hopkins
>
Yes, of course, I could use "useradd -g", but I'm always forgetting it.
I was thinking for something more like...let's say a config file, where
one could put the defaults and actually use only "useradd xyz" w/o any
params. Thinking of which...there is this file /etc/default/useradd,
where I have the statement "GROUP=100" (100=users), but useradd doesn't
obey it...
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] pam limits
2007-10-25 11:45 ` Albert Hopkins
2007-10-25 12:25 ` Etaoin Shrdlu
2007-10-25 12:31 ` [gentoo-user] " Daniel Iliev
@ 2007-10-25 12:37 ` Daniel Iliev
2007-10-25 22:02 ` Florian Philipp
3 siblings, 0 replies; 15+ messages in thread
From: Daniel Iliev @ 2007-10-25 12:37 UTC (permalink / raw
To: gentoo-user
On Thu, 25 Oct 2007 06:45:49 -0500
Albert Hopkins <marduk@letterboxes.org> wrote:
> >
> > Now that the behaviour of "useradd -m xyz" has changed from putting
> > the newuser in group "users" ("xyz:users") to putting the user in a
> > group with same name ("xyz:xyz") I would appreciate any advice on
> > getting the old behavior back or any workaround to achieve the same
> > goal - all users should be limited by default at creation time.
>
> Oh do they do that now? That was that nasty Red Hat extension.
> Nevertheless, override the default behavior:
>
> # useradd -m -g users xyz
>
>
>
> --
> Albert W. Hopkins
>
Yes, of course, I could use "useradd -g", but I'm always forgetting
about it. I was thinking for something more like...let's say a config
file, where one could put the defaults and actually use only
"useradd xyz" w/o any params. Talking of which...there's that
file /etc/default/useradd, where I have the statement
"GROUP=100" (100=users), but useradd doesn't obey it...
--
Best regards,
Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] pam limits
2007-10-25 11:45 ` Albert Hopkins
` (2 preceding siblings ...)
2007-10-25 12:37 ` Daniel Iliev
@ 2007-10-25 22:02 ` Florian Philipp
2007-10-25 22:59 ` Albert Hopkins
3 siblings, 1 reply; 15+ messages in thread
From: Florian Philipp @ 2007-10-25 22:02 UTC (permalink / raw
To: gentoo-user
Albert Hopkins schrieb:
> On Thu, 2007-10-25 at 14:35 +0300, Daniel Iliev wrote:
>> Hi, ppl
>>
>> I have the habit of imposing some limitations over all users via
>> /etc/security/limits.conf. For example I used to limit the number of
>> concurrent processes one can execute to prevent the system from simple
>> misuses like fork bombs by putting a limit (nproc) for group "users"
>> and all other common groups ("games" etc.)
>>
>> Now that the behaviour of "useradd -m xyz" has changed from putting the
>> newuser in group "users" ("xyz:users") to putting the user in a group
>> with same name ("xyz:xyz") I would appreciate any advice on getting the
>> old behavior back or any workaround to achieve the same goal - all
>> users should be limited by default at creation time.
>
> Oh do they do that now? That was that nasty Red Hat extension.
> Nevertheless, override the default behavior:
>
> # useradd -m -g users xyz
>
>
>
> --
> Albert W. Hopkins
>
I'm wondering what's the advantage of using a special group for each
user. Doesn't it just make user administration more complicated?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [gentoo-user] pam limits
2007-10-25 22:02 ` Florian Philipp
@ 2007-10-25 22:59 ` Albert Hopkins
0 siblings, 0 replies; 15+ messages in thread
From: Albert Hopkins @ 2007-10-25 22:59 UTC (permalink / raw
To: gentoo-user
On Fri, 2007-10-26 at 00:02 +0200, Florian Philipp wrote:
> I'm wondering what's the advantage of using a special group for each
> user. Doesn't it just make user administration more complicated?
It's explained here http://tinyurl.com/4bn9h
Basically it aids in the sharing of files/directories between groups.
AFAIK the same thing can (and should) be done using ACLs but,
unfortunately, this isn't enabled by default on most Linux distros, thus
the Red Hat hack.
--
Albert W. Hopkins
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 15+ messages in thread