From owner-freebsd-questions Wed Nov 14 9:25:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id 246DB37B405 for ; Wed, 14 Nov 2001 09:25:45 -0800 (PST) Received: (qmail 27901 invoked by uid 100); 14 Nov 2001 17:25:44 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15346.43288.450129.891066@guru.mired.org> Date: Wed, 14 Nov 2001 11:25:44 -0600 To: ako ito Cc: questions@freebsd.org Subject: Re: background process In-Reply-To: <109324911@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ako ito types: > how do i make a user to have just one background > process running and if he does morethan one -- it will > automatically be killed - is this possible ? I don't believe it can be done reliably, because there are to many different situations one can run into. The goal of FreeBSD is to make it easy to do powerful things, not easy to restrict users from doing powerful things. You can set the maximum number of processes (see the login.conf man page) for classes of users, but that's not the same thing at all. It takes two processes just to log in. Running one command means you've got three processes. Running a simple pipe involves one process for every command in the pipeline, none in the background. Setting an arbitrary process limit high enough to allow reasonable shell scripts to run will allow lots of processes - which could also be used as background processes. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message