Path: utzoo!mnetor!tmsoft!torsqnt!hybrid!scifi!bywater!uunet!bria!mike Newsgroups: comp.unix.internals Subject: Re: Limiting the number of user processes ? Message-ID: <397@bria> Date: 26 Jan 91 21:55:20 GMT References: <25720@adm.brl.mil> Reply-To: uunet!bria!mike (Michael Stefanik) Organization: Briareus Corporation, Los Angeles, CA Lines: 23 In article <25720@adm.brl.mil> tower-unix.city-poly.ac.uk!jewell (Tony Jewell) writes: >We have had a lot of problem recently with our students (by mistake) writing >recursive shell scripts, e.g. having their program name as the first line >of their program, so that it keeps calling itself (Don't ask why !). >Is there an easy way (or not so easy way) that we can limit the number of >processes a user can run, in the same way that VMS can ? Generally speaking, with UNIX processes and the kernel configuration, there are two values to be concerned with: proc (aka NPROC) and maxproc (aka MAXUPRC). The proc value determines the number of process slots allocated at boottime, and is of course system-wide. The maxproc value determines the number of processes that can be created by any one user, and this is what you're looking for. Read up on configuring the kernel, and adjust the value of maxproc down. Some flavors of UNIX support dynamically adjusting the maxproc and proc values (such as AIX), but most require relinking the kernel. -- Michael Stefanik, Systems Engineer (JOAT), Briareus Corporation UUCP: ...!uunet!bria!mike -- technoignorami (tek'no-ig'no-ram`i) a group of individuals that are constantly found to be saying things like "Well, it works on my DOS machine ..."