The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Getting rid of ulimit restrictions.

Discussion in 'General Discussion' started by Khanduras, Aug 7, 2007.

  1. Khanduras

    Khanduras Member

    Joined:
    Jan 10, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I know that it isn't the safest thing in the world to do, but for what I'm wanting to accomplish, I'm going to need to completely remove the ulimit restrictions set forth by cPanela and WHM upon new user creation.

    Obviously, my /etc/limits.conf file is free of any restrictions, but cPanel users through jailshell apparently have limits set forth, as the gaming servers they are set up with are getting limited by resource consumption.

    Now, I really need someone to tell me how to completely remove the ulimit restrictions created by WHM/cPanel upon account creation, so that I may continue to provide my users with their unrestricted game hosting accounts.

    If someone could please tell me how to do this, in a hurry, I'd greatly appreciate it. Thanks muchly in advance.
     
  2. pross

    pross Well-Known Member

    Joined:
    Mar 14, 2005
    Messages:
    75
    Likes Received:
    0
    Trophy Points:
    6
    turn off Shell Fork Bomb Protection
     
  3. erick_paper

    erick_paper Well-Known Member

    Joined:
    Apr 19, 2005
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    I have turned off Shell Fork Bomb protection, but the ulimit has not been removed. I need this not for gaming etc, but for postgresql, which only gets "max user processes" of "20"!! I need like 14,335 for postgres to work at any decent pace!

    I notice the ulimits are being setup in /etc/profile/.bash_profile. I changed them by commenting out the IF-ELSE condition at the top that checks for the root user. I basically now have ulimit for all users. But now my machine won't start. Any thoughts on this?
     
  4. erick_paper

    erick_paper Well-Known Member

    Joined:
    Apr 19, 2005
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Sorry to bump this, but any thoughts would be lovely. This is the new stuff (highlighted in red). Now how can I make sure this is reflected in the ulimit for users other than root? Can I do it without rebooting the machine?

     
  5. Khanduras

    Khanduras Member

    Joined:
    Jan 10, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Again, a bump. I'm still trying to figure this out. No luck so far.
     
  6. erick_paper

    erick_paper Well-Known Member

    Joined:
    Apr 19, 2005
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    16
    Hi. First, disable "Shell Fork Bomb" stuff from the "Security Center" in WHM. Second, just open the file /etc/profile and comment out the line at the very top in the IF condition that checks for root user or not. Here is what I have done for my stuff:

    Hope this helps! You may need to reboot the server for this to take effect, but I am not an expert.
     
Loading...

Share This Page