From owner-freebsd-questions Mon Jan 24 18:23:45 2000 Delivered-To: freebsd-questions@freebsd.org Received: from vinyl.sentex.ca (vinyl.sentex.ca [209.112.4.14]) by hub.freebsd.org (Postfix) with ESMTP id 99EAA14A04 for ; Mon, 24 Jan 2000 18:23:37 -0800 (PST) (envelope-from mike@sentex.net) Received: from granite.sentex.net (granite-atm.sentex.ca [209.112.4.1]) by vinyl.sentex.ca (8.9.3/8.9.3) with ESMTP id VAA88977; Mon, 24 Jan 2000 21:23:33 -0500 (EST) (envelope-from mike@sentex.net) Received: from ospf-mdt.sentex.net (ospf-mdt.sentex.net [205.211.164.81]) by granite.sentex.net (8.8.8/8.6.9) with SMTP id VAA26558; Mon, 24 Jan 2000 21:23:32 -0500 (EST) From: mike@sentex.net (Mike Tancsa) To: kasper@swebase.com ("Kasper") Cc: questions@freebsd.org Subject: Re: Question Date: Tue, 25 Jan 2000 02:22:22 GMT Message-ID: <388d07dd.166459950@mail.sentex.net> References: In-Reply-To: X-Mailer: Forte Agent .99e/32.227 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 24 Jan 2000 06:25:45 -0500, in sentex.lists.freebsd.questions you wrote: >This is a multi-part message in MIME format. > >------=_NextPart_000_0013_01BF6666.0B070510 >Content-Type: text/plain; > charset="iso-8859-1" >Content-Transfer-Encoding: quoted-printable > >Hello i'm a new freebsd user and i have an shellacountserver. I wonder = >how i can restrict users so the only can run 1 backgroundprocess? > >Anyone who can help me? Well, you posted to the right place. However, a couple of tips on getting questions answered. a) Try and use more descriptive subject headings. (I only saw your question because I accidentally clicked on it). Many people wont bother reading what they are not interested in. b) Dont post HTML messages. You end up posting the same thing twice, and a lot of people dont like reading in HTML. As to your question, there are a number of ways to do it. One way is via login classes. Have a look at /etc/login.conf and create a class for your shell users to restrict them so that they can not eat up x amount of RAM, or fork off too many processes etc. However, limiting to one process might be too restrictive. Note that not all things are implemented in the login.classes, but for what you want to do, you should find everything you need. ---Mike Mike Tancsa (mdtancsa@sentex.net) Sentex Communications Corp, Waterloo, Ontario, Canada "Given enough time, 100 monkeys on 100 routers could setup a national IP network." (KDW2) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message