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.

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:
    1
    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:
    1
    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,458
    Likes Received:
    22
    Trophy Points:
    38
    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
     
  4. Babylon

    Babylon Member

    Joined:
    Aug 8, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    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:
    18
Loading...

Share This Page