If you use bash, you could put "ulimit -Hu <number>" and "ulimit -u
<number> in /etc/profile. I think your kernel may also need the quota
option or so.  You could try
ulimit -u 1
man ulimit
to see if it works.

Script started on Sat Apr 24 23:12:09 1999
witsend:~$ ulimit -u 1
witsend:~$ man ulimit
bash: fork: Try again
witsend:~$ exit
exit

Script done on Sat Apr 24 23:12:26 1999
now set your ulimit back up to something reasonable and read man bash.
There is some sketchy provision for it to be set in the GECOS field of
/etc/passwd, but I couldn't work out the format.  I reckon putting it in
/etc/profile should do.  Other distros may keep the bash startup file
somewhere else, but man bash should tell you where.  This is SlackHat
4.9.  YMMV.

Lawson
          >< Microsoft free environment

This mail client runs on Wine.  Your mileage may vary.


On Sat, 24 Apr 1999, Ryan Esty wrote:

> Is there a way to set something to limit the number of open processes a
> user can have so they can't do fork bombs.  I don't have to worry about
it
> right now because I trust every one on my server but if I ever am in
> charge of a server I would really like to know.
> 
> Fork bomb def:
> Someone opening up some many process that nothing even the kernel can't
> open up another process.  If you ever do it you have to shut off your
> computer even the ctr-alt-delete won't work.
> 
> The only place I have looked so far is /etc/sercurity/limit.conf and I
> wasn't able to do it from there (or i did it wrong ).
> 
> 




___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]

Reply via email to