Limit on number of groups a user can join

Bill Vermillion bv at wjv.com
Wed Jan 16 09:02:56 PST 2008


Even though on Wed, Jan 16, 2008 at 12:00
freebsd-questions-request at freebsd.org realized that everything
he says should be taken 'cum grano salis', he unhesitatingly
continued with this missive:

> Message: 4
> Date: Tue, 15 Jan 2008 15:13:04 -0800
> From: Chuck Swiger <cswiger at mac.com>
> Subject: Re: Limit on number of groups a user can join

> On Jan 15, 2008, at 3:01 PM, Andrea Venturoli wrote:

> > I made some tries removing him from other groups and I got to
> > the conclusion that it works as long as he is in no more than
> > 15 groups, but breaks when he join the 16th. Is this an hard
> > limit? Can it be extended? Why this?

> This limit is somewhat historical but cannot easily be changed
> because this max # is hard-coded into the NFS protocol, which
> needs to describe which groups a user belongs to. If you're not
> using NFS, you might try changing the declaration of KI_NGROUPS
> in /usr/src/sys/ user.h and build a new kernel, I believe....

> -Chuck

I don't know if this will work in FreeBSD as I don't have
anyone in that many gruops.

I did run across this limit in a commercail System V a few years
back..  As I recall I added another line to the group file using
the same group number and that fixed that problem.

It may be worth a try.

Bill

-- 
Bill Vermillion - bv @ wjv . com


More information about the freebsd-questions mailing list