Adjusting NGROUPS_MAX constant

2007-01-16 Thread Dan Casey
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?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Adjusting NGROUPS_MAX constant

2007-01-16 Thread Parker Anderson

Hello Dan,

On 1/16/07, Dan Casey [EMAIL PROTECTED] 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]