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 and limits.conf file

Discussion in 'General Discussion' started by garak, Jun 26, 2007.

  1. garak

    garak Active Member

    Jan 23, 2004
    Likes Received:
    Trophy Points:

    When a user are inside a Jailshell environment, the values of /etc/security/limits.conf do not work, being completely ignored.


    userx hard nproc 500

    And ulimit -a output:

    [userx@doindoin bin]$ ulimit -a
    core file size (blocks, -c) 200000
    data seg size (kbytes, -d) 200000
    file size (blocks, -f) unlimited
    pending signals (-i) 1024
    max locked memory (kbytes, -l) 32
    max memory size (kbytes, -m) 200000
    open files (-n) 100
    pipe size (512 bytes, -p) 8
    POSIX message queues (bytes, -q) 819200
    stack size (kbytes, -s) 8192
    cpu time (seconds, -t) unlimited
    max user processes (-u) 20
    virtual memory (kbytes, -v) 200000
    file locks (-x) unlimited

    But, if I put this user in a Normal Shell, the values in /etc/security/limits.conf are accepted.

    So, anyone knows how I can set limits per user basis in a Jail Shell ???

    I noted that exists a default limits for this values, but where they are located? In what file?

    Thank you in advance (and I apologize for my bad english)

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