From owner-freebsd-stable Tue Mar 18 8:10:11 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EADAE37B405 for ; Tue, 18 Mar 2003 08:10:08 -0800 (PST) Received: from wuhjuhbuh.afraid.org (syr-24-59-96-217.twcny.rr.com [24.59.96.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02ACE43F75 for ; Tue, 18 Mar 2003 08:10:08 -0800 (PST) (envelope-from bks10@cornell.edu) Received: from wuhjuhbuh.afraid.org (localhost.wuhjuhbuh.afraid.org [127.0.0.1]) by wuhjuhbuh.afraid.org (Postfix) with SMTP id 4C43F62B8; Tue, 18 Mar 2003 11:10:06 -0500 (EST) Received: from 192.168.1.5 (SquirrelMail authenticated user ski) by wuhjuhbuh.afraid.org with HTTP; Tue, 18 Mar 2003 11:10:06 -0500 (EST) Message-ID: <4394.192.168.1.5.1048003806.squirrel@wuhjuhbuh.afraid.org> Date: Tue, 18 Mar 2003 11:10:06 -0500 (EST) Subject: setting kern.ngroups From: "Brian Szymanski" To: X-Priority: 3 Importance: Normal Cc: X-Mailer: SquirrelMail (version 1.2.11) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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