Shell Fork Bomb Protection is a WHM security feature that limits the number of processes a user with shell (SSH) access can run. A fork bomb is a type of denial-of-service attack where a process continuously creates copies of itself, quickly consuming all available system resources and causing the server to become unresponsive. This protection uses ulimit to enforce process limits per user.
Steps to Disable Shell Fork Bomb Protection
- Log in to WHM as the root user.
- Navigate to Home » Security Center » Shell Fork Bomb Protection.
- Click Disable Protection to turn off fork bomb protection for users with terminal access.
- A confirmation message will appear indicating that protection has been disabled.
You can re-enable protection at any time by returning to the same page and clicking Enable Protection.
Default Protection Limits (When Enabled)
When fork bomb protection is active, WHM applies the following ulimit restrictions to each user:
- 35 processes (
-u) — Maximum concurrent processes per user. This is the key protection against fork bombs. - 100 open file descriptors (
-n) — Limits the number of files a process can have open simultaneously. - 8192 KB stack size (
-s) — Maximum memory allocated for the process stack. - 200000 KB for core file size (
-c), data segment (-d), and resident set size (-m). - Unlimited virtual memory (
-v).
Important Notes
- Fork bomb protection only affects users with bash shell access (SSH or Telnet). It does not impact web-based cPanel operations.
- Disabling this protection is not recommended unless you have a specific reason and alternative security measures in place. A malicious or careless user could crash the server by running a fork bomb.
- The 35-process limit applies to cPanel users with bash shell, which is the default shell for cPanel accounts.
- Changes take effect immediately. No server restart is required.
- If you need higher limits for specific users, consider configuring per-user limits manually via SSH rather than disabling protection entirely.
Troubleshooting
- Users report "too many processes" errors: If legitimate users hit the 35-process limit, you may need to disable protection or set custom
ulimitvalues for those specific users via SSH. - Cron jobs failing: Some applications that spawn many worker processes may be affected by the limit. Consider disabling protection or using
/etc/security/limits.conffor per-user overrides. - Server becomes slow or unresponsive: If you have disabled protection and users are abusing shell access, re-enable it immediately under Security Center » Shell Fork Bomb Protection.
For official documentation, see the cPanel Shell Fork Bomb Protection guide.