From owner-freebsd-questions Tue Jan 25 14:18:33 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mx2.x-treme.gr (mx2.x-treme.gr [212.120.192.15]) by hub.freebsd.org (Postfix) with ESMTP id 5E98A14A09 for ; Tue, 25 Jan 2000 14:18:27 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from hades.hell.gr (pat59.x-treme.gr [212.120.197.251]) by mx2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id AAA14275; Wed, 26 Jan 2000 00:17:48 +0200 Received: (from charon@localhost) by charon.hell.gr (8.9.3/8.9.3) id RAA16333; Tue, 25 Jan 2000 17:29:54 +0200 (EET) (envelope-from keramida@diogenis.ceid.upatras.gr) Date: Tue, 25 Jan 2000 17:29:54 +0200 From: the Webslave To: Kasper Cc: FreeBSD Subject: Re: Question Message-ID: <20000125172954.B16285@charon.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <001601bf665d$a9673c10$2b4b4bd4@swebasepro> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <001601bf665d$a9673c10$2b4b4bd4@swebasepro>; from kasper@swebase.com on Mon, Jan 24, 2000 at 12:25:04PM +0100 X-PGP-Fingerprint: 62 45 D1 C9 26 F9 95 06 D6 21 2A C8 8C 16 C0 8E X-Phone-Number: +30-94-6203692, +30-93-2886457 X-Address: Theodorou Kirinaiou 61, 26334 Patra, Greece Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jan 24, 2000 at 12:25:04PM +0100, Kasper wrote: > > 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? You want to set the max user processes limit, which is done in a shell-specific way. I know that Bash supports the `ulimit' command, and you can read the manpage of bash for finding out how it works. However, you will find it pretty inconvenient to set this limit pretty low, since a single command line can generate an arbitrary amount of `forked' processes. Think of commands like: % ls -l | grep PATTERN | sort | uniq | more There are five processes in there, not counting the parent-shell. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > "Don't let your schooling interfere with your education." [Mark Twain] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message