This object is in archive! 
Enabling Shell Fork Bomb Protection in Command Line for Scripted Server Deployment
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.
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.
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.
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.
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 have been locked on this page!