Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jan 2007 20:50:23 -0600
From:      "Parker Anderson" <baka.rob@gmail.com>
To:        "Dan Casey" <dcasey@debtresolve.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Adjusting NGROUPS_MAX constant
Message-ID:  <ff4d9d1d0701161850w29d55f7n3b055f36ec846fbd@mail.gmail.com>
In-Reply-To: <45AD7795.2060100@debtresolve.com>
References:  <45AD7795.2060100@debtresolve.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello Dan,

On 1/16/07, Dan Casey <dcasey@debtresolve.com> wrote:
> I am running into trouble with users who are in more then 16 groups.  I
> fail to ssh in with the following message:
> sshd[96785]: initgroups(username,1002): Invalid argument
>
> sysctl -a kern.ngroups
> kern.ngroups: 16
>
> Is there any reason why I should not raise NGROUPS_MAX in the following
> two files?
>
> /usr/include/sys/syslimits.h
> /usr/src/sys/sys/syslimits.h
>
>
> What could I accidentally break.. Or should I say, is there a good
> reason why the number 16 is hard coded in there?

I found another post on this:

http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2005-05/1086.html

The poster outlines 3 potential issues, including issues with NFS with
an NGROUPS_MAX value above 16.  I'm not sure if those are still issues
(e.g. I don't use NFS), but that may be why the values have been set
that way by default.

I hope that thread helps!

Sincerely,
-Parker



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ff4d9d1d0701161850w29d55f7n3b055f36ec846fbd>