Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.
This object is in archive! 

Enabling Shell Fork Bomb Protection in Command Line for Scripted Server Deployment

MonsterWeb shared this idea 10 years ago
Open Discussion

As a Security Analyst, I find that securing servers is the mot time consuming part of setting one up. I have spent hours writing a script to do this for me. What would definately put it over the top is if I could enable Shell Fork Bomb Protection within command line.

Best Answer
photo

While this workaround I am providing does not invalidate your feature request or mean that it is not necessary to pursue, I do want to provide it.


This is not as clean/simple as a simple command line script. But, you can effectively enable/disable Shell Fork Bomb Protection from the command line via running:


/usr/local/cpanel/bin/install-login-profile --install limits


The same to remove it via:


/usr/local/cpanel/bin/install-login-profile --uninstall limits


Hope this helps in the interim. I agree it would be nice to have much of the existing WHM items exposed via a proper API which would lend itself to easily integrating them into various command line tools and otherwise.

Replies (1)

photo
1

While this workaround I am providing does not invalidate your feature request or mean that it is not necessary to pursue, I do want to provide it.


This is not as clean/simple as a simple command line script. But, you can effectively enable/disable Shell Fork Bomb Protection from the command line via running:


/usr/local/cpanel/bin/install-login-profile --install limits


The same to remove it via:


/usr/local/cpanel/bin/install-login-profile --uninstall limits


Hope this helps in the interim. I agree it would be nice to have much of the existing WHM items exposed via a proper API which would lend itself to easily integrating them into various command line tools and otherwise.

Leave a Comment
 
Attach a file