From owner-freebsd-questions Wed Mar 1 7:26:20 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 4BB0437C301 for ; Wed, 1 Mar 2000 07:26:12 -0800 (PST) (envelope-from bhishan@cytosine.dhs.org) Received: (from bhishan@localhost) by cytosine.dhs.org (8.9.3/8.9.3) id HAA15087; Wed, 1 Mar 2000 07:25:54 -0800 (PST) (envelope-from bhishan) From: Bhishan Hemrajani Message-Id: <200003011525.HAA15087@cytosine.dhs.org> Subject: Re: Fork problems (login.conf help req) In-Reply-To: <00256895.003E384D.00@rslhub.raytheon.co.uk> from "Chris.Smith@raytheon.co.uk" at "Mar 1, 2000 11:15:33 am" To: Chris.Smith@raytheon.co.uk Date: Wed, 1 Mar 2000 07:25:53 -0800 (PST) Cc: freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL68 (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 What you do is, edit your login.conf. then, # cap_mkdb /etc/login.conf then, add the user to the class: # chfn user In the visual editor, type in the name of the class you would like to add him to, and exit. That's it. I don't think it requires any kernel options. Please correct me if I'm wrong. --bhishan > > > Hi, > > Some nice person wrote a nice C program and ran it on my system (I know who > - theyre going to be hanged this afternoon!):- > > main() { for(;;) fork(); } > > How can I at best limit the user's damage using process accounting (for > next time). I can add the corect entry to login.conf, but how do I attach > a user to that particular login class and do I need any kernel options > enabled? > > Thanks in advance > > Chris Smith > Raytheon Systems Limited > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message