Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jan 2000 17:29:54 +0200
From:      the Webslave <charon@charon.hell.gr>
To:        Kasper <kasper@swebase.com>
Cc:        FreeBSD <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Question
Message-ID:  <20000125172954.B16285@charon.hell.gr>
In-Reply-To: <001601bf665d$a9673c10$2b4b4bd4@swebasepro>; from kasper@swebase.com on Mon, Jan 24, 2000 at 12:25:04PM %2B0100
References:  <001601bf665d$a9673c10$2b4b4bd4@swebasepro>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000125172954.B16285>