From owner-freebsd-stable Tue Mar 18 8:19:49 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 ADA2A37B401 for ; Tue, 18 Mar 2003 08:19:47 -0800 (PST) Received: from gatekeeper.microcell.ca (gatekeeper.microcell.ca [205.151.8.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A047043F3F for ; Tue, 18 Mar 2003 08:19:46 -0800 (PST) (envelope-from SoHo@admin.fido.ca) Received: from mailserv.microcell.ca (mailserv.microcell.ca [10.2.0.87]) by gatekeeper.microcell.ca (Postfix) with ESMTP id 7E2C916C8F; Tue, 18 Mar 2003 11:19:45 -0500 (EST) Received: from 127.0.0.1 (localhost [127.0.0.1]) by mailserv.microcell.ca (Postfix) with SMTP id 3525816BCC; Tue, 18 Mar 2003 11:19:45 -0500 (EST) Received: from lenard.admin.fido.ca (lamus.fido.ca [10.0.1.45]) by mailserv.microcell.ca (Postfix) with ESMTP id EEECF16BCA; Tue, 18 Mar 2003 11:19:43 -0500 (EST) Received: from magni.microcell.ca (magni.microcell.ca [10.6.22.102]) by lenard.admin.fido.ca (SMTP_Gateway) with ESMTP id 930C347D3C; Tue, 18 Mar 2003 11:19:43 -0500 (EST) Received: from magni.microcell.ca (localhost [127.0.0.1]) by magni.microcell.ca (8.12.6/8.12.7) with SMTP id h2IGIOfa067241; Tue, 18 Mar 2003 11:18:25 -0500 (EST) (envelope-from SoHo@admin.fido.ca) Date: Tue, 18 Mar 2003 11:18:24 -0500 From: Edmond Baroud To: "Brian Szymanski" Cc: freebsd-stable@FreeBSD.ORG, christopher@indymedia.org Subject: Re: setting kern.ngroups Message-Id: <20030318111824.6f70b763.SoHo@admin.fido.ca> In-Reply-To: <4394.192.168.1.5.1048003806.squirrel@wuhjuhbuh.afraid.org> References: <4394.192.168.1.5.1048003806.squirrel@wuhjuhbuh.afraid.org> X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sanitizer: This message has been sanitized! X-Sanitizer-Rev: $Id: Sanitizer.pm,v 1.64 2002/10/22 16:37:04 bre Exp $ 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 is your kern.securelevel set to 1 or 2? Ed. On Tue, 18 Mar 2003 11:10:06 -0500 (EST) "Brian Szymanski" wrote: > 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 -- Edmond Baroud UNIX Systems Admin mailto:SoHo@admin.fido.ca Fingerprint 140F 5FD5 3FDD 45D9 226D 9602 8C3D EAFB 4E19 BEF9 "UNIX is very user friendly, it's just picky about who its friends are." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message