Adjusting NGROUPS_MAX constant

Dan Casey dcasey at debtresolve.com
Wed Jan 17 01:10:52 UTC 2007


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?



More information about the freebsd-questions mailing list