Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Oct 2003
    Posts
    8

    Default Fork/Bomb Help

    Hellom

    I am just wondering if any of you people have any ideas how to exempt a user or two from the fork/bomb settings? I tried editing the bashrc and the script in /usr/local/cpanel/ Didn't help at all.

    If anyone knows anything, it would be very, very helpful. Right now, I have it disabled, but I trust most of my users. :P

    Anyways, anything at all would be helpful, especially something from one of the developers telling me which files impose the limits...

  2. #2
    Member
    Join Date
    Oct 2003
    Posts
    8

    Default

    Anyone have any ideas? Searching google extnesively yeilded nothing.

    Would help alot if I got this figured out.

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Just had a quick look. It appears that the fork/bomb protection for shell users is controlled by /etc/profile

    If you look at the top of the file, you should see (when enabled):
    Code:
    #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
    I would have thought that with a little bash script modification you could exempt certain users.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Member
    Join Date
    Oct 2003
    Posts
    8

    Default

    Just wondering if anyone knows anything about this yet?

    BTW, I did try and edit all of the bash scripts I could find. It did not help me with disabling it for one user at all.

Similar Threads & Tags
Similar threads

  1. shell fork bomb
    By pthirose in forum Security
    Replies: 0
    Last Post: 03-31-2010, 06:37 PM
  2. shell fork bomb
    By liang3391 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-26-2009, 07:37 PM
  3. Shell Fork Bomb Protection - What Exactly Does It Do?
    By HelloJeff in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-22-2005, 05:47 PM
  4. Shell Fork Bomb Protection
    By manlius.com in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-03-2003, 08:35 AM
  5. shell fork bomb
    By hst in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-09-2003, 05:03 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube