Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2011
    Posts
    10

    Default Shell Fork Bomb Protection - Exceptions?

    Hi Guys,

    I have a user that runs a Minecraft server. This is a java file that has quite a high memory requirement, and when "Shell Fork Bomb Protection" is switched on it will not let me run the file under the user.

    I would like the protection on for all accounts except the "minecraft" user, is this possible?

    Daniel

  2. #2
    BANNED
    Join Date
    Aug 2009
    Posts
    83

    Default Re: Shell Fork Bomb Protection - Exceptions?

    Hello,

    Unfortunately, this option is only a global setting and our interface doesn't allow any exceptions to the rule once enabled.

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Shell Fork Bomb Protection - Exceptions?

    While this cannot be done via the interface, it may be possible to revise using the limits set into /etc/profile location, which are the entries added by Shell Fork Bomb Protection:

    #cPanel Added Limit Protections -- BEGIN

    #unlimit so we can run the whoami
    ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null

    LIMITUSER=$USER
    if [ -e "/usr/bin/whoami" ]; then
    LIMITUSER=`/usr/bin/whoami`
    fi
    if [ "$LIMITUSER" != "root" ]; then
    ulimit -n 100 -u 20 -m 200000 -d 200000 -s 8192 -c 200000 -v 200000 2>/dev/null
    else
    ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null
    fi
    #cPanel Added Limit Protections -- END
    You could revise to add another user in the section where it has the if-else clauses to set the root and non-root user ulimits. You might also want to set the user's settings in /etc/security/limits.conf file.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. i cant enabel Shell Fork Bomb Protection
    By bt4 in forum New User Questions
    Replies: 3
    Last Post: 12-31-2011, 12:29 PM
  2. shell fork bomb
    By liang3391 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-26-2009, 06:37 PM
  3. Shell Fork Bomb Protection causing segfaults?
    By bls24 in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 08-12-2008, 11:41 AM
  4. Shell Fork Bomb Protection - What Exactly Does It Do?
    By HelloJeff in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-22-2005, 04:47 PM
  5. Shell Fork Bomb Protection
    By manlius.com in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-03-2003, 07:35 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube