Why Shell fork bomb wont get enabled on my Dedicated server ?

a24uall

Active Member
Feb 4, 2010
27
0
51
India
haiii all Admins..

I have a dedicated server..
When enabling shell fork bomb through WHM it says ENABLED, and when we refresh the page it will be again in DISABLED state.
can any one let me know wt the reason is ?

Steps I followed :
1. Cpanel updated to Stable,current release.
2. Disabled csf
3. No php functions in php.ini are disabled. (May not be needed, but just in case)
4. Nothing in error logs.

Any hints will be greatly appreciated.
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter
haiii all Admins..

I have a dedicated server..
When enabling shell fork bomb through WHM it says ENABLED, and when we refresh the page it will be again in DISABLED state.
can any one let me know wt the reason is ?

Steps I followed :
1. Cpanel updated to Stable,current release.
2. Disabled csf
3. No php functions in php.ini are disabled. (May not be needed, but just in case)
4. Nothing in error logs.

Any hints will be greatly appreciated.
What is your Operating System release/version number?

What is your cPanel version number?

Is the issue occurring on just one system or multiple systems?

Please let us know the output from the following commands, entered via root SSH access:
Code:
# grep -H '' /usr/local/cpanel/version /var/cpanel/envtype
# stat /etc/bashrc /etc/profile /etc/profile.d/limits.csh /etc/profile.d/limits.sh
# grep -Hn "cPanel" /etc/bashrc /etc/profile /etc/profile.d/limits.csh /etc/profile.d/limits.sh
 

RandallKent

Member
Oct 18, 2003
8
0
151
A little more detail on the resolution courtesy of Tristan's post in another thread.

In order to enable Shell Fork Bomb Protection, the /etc/profile file must be editable:

Code:
lsattr /etc/profile
If the file has -i on it, then it will need to be made mutable to be edited for this service:

Code:
chattr -i /etc/profile