Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Jailshell ulimit issue

Discussion in 'General Discussion' started by JonMarkGo, Jan 22, 2008.

  1. JonMarkGo

    JonMarkGo Active Member

    Joined:
    Sep 14, 2005
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    151
    I'm trying to raise the limit on the number of open files for a user... I entered them in /etc/security/limits.conf and did ulimit -n as root but the user still has a limit of only 100 open files.
     
  2. JonMarkGo

    JonMarkGo Active Member

    Joined:
    Sep 14, 2005
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    151
    I even edited the limit in /etc/profile but still can't seem to get above the 100 max.
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,563
    Likes Received:
    42
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    It's a chroot environment, hence will not read the global configuration files. Try setting the limits in /home/virtfs/user/etc/security/limits.conf or /home/virtfs/user/etc/profile
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Babylon

    Babylon Member

    Joined:
    Aug 8, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    151
    I had a similiar problem, and after editing /etc/profile and /etc/bashrc to remove the ulimit of 100 or to increase the ulimit on certain users, I was still finding problems. Security Center -> Shell Fork Bomb Protection -> Disable it, was what I had to go with. It would be nice to be able to add "trusted" users who can go beyond the usual limits.
     
    #4 Babylon, Feb 21, 2008
    Last edited: Feb 21, 2008
  5. ispro

    ispro Well-Known Member

    Joined:
    Apr 8, 2004
    Messages:
    628
    Likes Received:
    1
    Trophy Points:
    168
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice