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

Re: Preventing Forkbombs



Florian Ernst said on Thu, Nov 13, 2003 at 12:39:58AM +0100:
> 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.

You can also set resource limits using pam modules on login.

M

Attachment: pgpYpCj5UKSbW.pgp
Description: PGP signature


Reply to: