From owner-freebsd-questions Wed Feb 23 18:59:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cytosine.dhs.org (cx272244-a.orng1.occa.home.com [24.1.177.149]) by hub.freebsd.org (Postfix) with ESMTP id 6959E37BAB9 for ; Wed, 23 Feb 2000 18:59:55 -0800 (PST) (envelope-from bhishan@cytosine.dhs.org) Received: (from bhishan@localhost) by cytosine.dhs.org (8.9.3/8.9.3) id TAA01707 for freebsd-questions@freebsd.org; Wed, 23 Feb 2000 19:01:28 -0800 (PST) (envelope-from bhishan) From: Bhishan Hemrajani Message-Id: <200002240301.TAA01707@cytosine.dhs.org> Subject: login.conf settings not taking affect To: freebsd-questions@freebsd.org Date: Wed, 23 Feb 2000 19:01:27 -0800 (PST) X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm having a little bit of trouble getting my settings in /etc/login.conf to work. I am trying to limit the number of processes that each user is allowed. These are the settings I have for that class: :maxproc=5:\ :cputime=1h:\ :datasize=16m:\ :stacksize=8m:\ :memoryuse=16m:\ :memorylocked=16m:\ :minpasswordlen=6:\ :passwordtime=30d:\ :openfiles=256:\ :warnpassword=5d:\ :tc=default After I set this, I used "cap_mkdb /etc/login.conf" to make the database. And "chfn user" and changed the class of the user I wanted to modify the settings for. After that, I logged in as the user, and ran a program that was made in c to hog up all system resources. This is the code to that program: include #include #include int main (void) { while (1) { malloc(10485760); printf ("BLah to you\n"); fork(); } } Even after these settings the program still took up more that five processes, and more than 16m of memory. Please help me with this. --bhishan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message