Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Mar 2003 11:10:06 -0500 (EST)
From:      "Brian Szymanski" <bks10@cornell.edu>
To:        <freebsd-stable@freebsd.org>
Cc:        <christopher@indymedia.org>
Subject:   setting kern.ngroups
Message-ID:  <4394.192.168.1.5.1048003806.squirrel@wuhjuhbuh.afraid.org>

next in thread | raw e-mail | index | archive | help
Hi,

I'm having some trouble setting the (read-only) sysctl value kern.ngroups.
athlon system, running 4.x-stable. The reason I need to modify this value
is for some software that requires user www to be in a lot of different
groups, and the default value of 16 is insufficient.

As per handbook section 6.9.1 "sysctl(8) read only", I've tried to modify
the value by adding the line kern.ngroups="256" in
/boot/loader.conf.local. When this boots up, I do a manual sysctl
kern.ngroups, and it tells me 16 still... So I tried throwing the value
straight in to /boot/defeaults/loader.conf... When I boot up, kern.ngroups
is still at 16. I even tried editing /usr/src/sys/sys/syslimits.h and
setting kern.ngroups to be 256 in the source. However, this results in
some sort of bug in the kernel - when I reboot to a kernel compiled in
this way, my machine dies trying to mount_msdos. I'm assuming that this is
a sign of bad things happening in the kernel. I didn't actually try to
boot further with this kernel.

So, the question of the day is, what is the best way to set kern.ngroups?
And, is 256 for some reason a "bad" value to set it to? If so, what value
should I choose? I've also tried 128 with no success, and am working my
way down to 16, but I'm not sure if I trust the kernel that I might get by
compiling in such a way...

Any help would be greatly appreciated. Thanks for reading,
Brian Szymanski
bks10@cornell.edu




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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