From owner-freebsd-questions Tue Feb 27 07:06:13 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA24424 for questions-outgoing; Tue, 27 Feb 1996 07:06:13 -0800 (PST) Received: from alpha.dsu.edu (ghelmer@alpha.dsu.edu [138.247.32.12]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id HAA24418 for ; Tue, 27 Feb 1996 07:06:10 -0800 (PST) Received: (from ghelmer@localhost) by alpha.dsu.edu (8.7.4/8.7.3) id JAA13493; Tue, 27 Feb 1996 09:06:03 -0600 (CST) Date: Tue, 27 Feb 1996 09:06:02 -0600 (CST) From: Guy Helmer To: John Henders cc: freebsd-questions@freefall.freebsd.org Subject: Re: raising user max limits on bootup for one user In-Reply-To: <4gupus$47u@vanbc.wimsey.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG Precedence: bulk On 27 Feb 1996, John Henders wrote: > I would like to raise the limits for the news user from the defaults for > normal users. Is there some way I can do this for just the one user, or > do I have to do it globally, and other than raising maxusers is there > another way to do this? You probably could adjust the kernel somehow to raise the default limits, or add setrlimit() calls to an appropriate place in /sbin/init, to raise the limits for all users. Changing "maxusers" in a kernel config only changes the size of the kernel tables -- it doesn't affect the default proc limit of 40, for example. Each process inherits limits from it's parent; the only user-land method provided for raising the limits is via the "limit" and "unlimit" commands in csh. To get around this, I have written a wrapper that that changes a limit (in my case, NPROC) and then execs the command given on the wrapper's command line; for my news machine, I use the wrapper to raise the NPROC limit for /usr/sbin/cron and /usr/local/etc/rc.news to avoid hitting the limit when lots of readers are running. Guy Helmer, Dakota State University Computing Services - ghelmer@alpha.dsu.edu