On Thu, 31 Jan 2002, Alexander List wrote: > > Is there a way in the 2.4.17 kernel to prevent fork bombs from crashing > > a system ? > > I think ulimit (builtin of bash) is your friend. Try ulimit -u. See > bash(1).
To add to this: Make sure this is done with "hard" limits, so they can't be raised. Also, consider setting values for memory, cpu time and others (not just processes). Set it in the /etc/profile; this system-wide config is used by bash, sh (ash), and ksh (and other shells). But your users may use chsh(1) to change their shell to bypass bash (and not use your defined limits). If using csh, look at /etc/csh.cshrc and /etc/csh.login; also it uses the limit command instead of ulimit. (Check your manual pages for the shells listed in /etc/shells.) For PAM, look at /etc/pam.conf, /etc/pam.d/*, pam_limits.so and /etc/security/limits.conf (or /etc/limits). Good luck, Jeremy C. Reed echo '9,J8HD,fDGG8B@?:536FC5=8@I;C5?@H5B0D@5GBIELD54DL>@8L?:5GDEJ8LDG1' |\ sed ss,s50EBsg | tr 0-M 'p.wBt SgiIlxmLhan:o,erDsduv/cyP' -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]