C.J. Oster wrote:

> How do I go about limiting the amount of memory any non-privelaged user
> and have, put a max on their number or processes, and such?

Use the `ulimit' bash built-in.

All processes which are started by init are run via the script
/etc/initscript (or /sbin/initscript, depending upon how init was
compiled).

If you add a ulimit command to this script it will apply to all
processes started by init. You can use the $1 or $4 arguments to apply
limits selectively (e.g. only to getty processes).

If users can log in via telnet, then you'll need to wrap either
in.telnetd or login in a script which sets appropriate limits. 
Similarly for other daemons which provide login-like facilities (e.g. 
rshd, rlogind, sshd).

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to