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.

ulimit -n above 1024?

Discussion in 'General Discussion' started by demine0, Mar 15, 2005.

  1. demine0

    demine0 Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    How do i get my ulimit -n above 1024 for a useraccount (or all accounts) on my server?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It's usually set in /etc/profile and /etc/bashrc
     
  3. demine0

    demine0 Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    so far i've changed the value in bashrc, profile, limit.csh, limit.sh, and nothing has changed it.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Are you logging out and back in again ;) Have you also checked the users own .bash_profile or .bashrc if they have one?
     
  5. demine0

    demine0 Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    i have logged out and logged in again. Also none of my users have their own .bashrc or .bash_profile files.
     
  6. demine0

    demine0 Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    anyone have a solution to this?
     
  7. DigitalN

    DigitalN Well-Known Member

    Joined:
    Sep 23, 2004
    Messages:
    420
    Likes Received:
    1
    Trophy Points:
    18
    After updating /etc/profile with the ulimit -n 16384 line - try rebooting your server.
     
  8. demine0

    demine0 Well-Known Member

    Joined:
    Mar 25, 2003
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    6
    Tryed.. Not working. one of the cpanel techs told me that this has nothing to do with cpanel at all, and that i need to use the ulimit command.

    -bash-2.05b$ ulimit -n 10000
    -bash: ulimit: open files: cannot modify limit: Operation not permitted
    -bash-2.05b$


    I ran that under the user i want the ulimit to go up for.
     
Loading...

Share This Page