[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Preventing Forkbombs



Hello Tom!

On Wed, Nov 12, 2003 at 02:56:37PM -0800, Tom 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".

You could set a ulimit, see man bash. I didn't have the need to try it
myself yet, but I guess it should work.

HTH,
Flo

Attachment: pgpoTMjs58mJn.pgp
Description: PGP signature


Reply to: