on Wed, Nov 12, 2003 at 02:56:37PM -0800, Tom ([EMAIL PROTECTED]) wrote: > How does one prevent a non-root user from locking up the system with: > > perl -e "while(1){fork}" > > System seems to become utterly unresponsive. (It's a loaded question, I > know.) Please no answers like: "don't do that" or "working by design".
/etc/security/limits.conf Depending on your release, 'man 5 limits' or 'man 5 limits.conf'. Set a maximum number of user processes and/or files and/or memory for user(s) in question. This can be particularly useful, say, for avoiding system thrash when innundated by thousands of viral mails all needing filtering by Spamassassin. Peace. -- Karsten M. Self <[EMAIL PROTECTED]> http://kmself.home.netcom.com/ What Part of "Gestalt" don't you understand? A guide to GNU/Linux partitioning: http://kmself.home.netcom.com/Linux/FAQs/partition.html
pgp00000.pgp
Description: PGP signature