Results 1 to 3 of 3

Thread: 12.04 root open file limits

  1. #1
    Join Date
    Nov 2012
    Beans
    1

    Question 12.04 root open file limits

    I have an issue with ulimits on ubuntu server 12.04 .

    I've set a custom ulimit for open files .

    root soft nofile 20000

    root hard nofile 60000

    This setting doesn't work , i've tried setting >pam_limits.so in /etc/pam.d/common-session

    But still , nothing .

    I want to mention that setting a limit for an user , on root it has the same value .

    If you set all (*) the root limits works .

    I want to set the limits only for the root account .

    Anyone had this issue ? Does pam.d have any effect on this ?

    Thanks ,

  2. #2
    Join Date
    Dec 2009
    Location
    germany
    Beans
    1,020
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: 12.04 root open file limits

    Quote Originally Posted by JameZer View Post
    I have an issue with ulimits on ubuntu server 12.04 .

    I've set a custom ulimit for open files .

    root soft nofile 20000

    root hard nofile 60000

    This setting doesn't work , i've tried setting >pam_limits.so in /etc/pam.d/common-session

    But still , nothing .

    I want to mention that setting a limit for an user , on root it has the same value .

    If you set all (*) the root limits works .

    I want to set the limits only for the root account .

    Anyone had this issue ? Does pam.d have any effect on this ?

    Thanks ,
    if root works with an asterisk - then it must be a bug - see man limits.conf

    --> man limits.conf
    NOTE: group and wildcard limits are not applied to the root user.
    To set a limit for the root user, this field must contain the
    literal username root.

    i set in /etc/pam.d/login and /etc/pam.d/login /etc/pam.d/sshd
    session required pam_limits.so

    NOTE: all limit settings are set per login

    this limits work for the user testuser.
    but be careful with "as" as you see i comment it because with that limit the
    testuses can't login (only black scren after typing the password !!!!
    <domain> <type> <item> <value>
    testuser soft data 512000
    testuser hard data 1000000
    testuser soft stack 8192
    testuser hard stack 16384
    #testuser soft as 512000
    #testuser hard as 1000000

    compiz get more than 1000 MB virtual size
    "What is the robbing of a bank compared to the FOUNDING of a bank?" Berthold Brecht

  3. #3
    Join Date
    Jun 2007
    Location
    Paraparaumu, New Zealand
    Beans
    Hidden!

    Re: 12.04 root open file limits

    Thread moved to Server Platforms.
    Forum DOs and DON'Ts
    Please use CODE tags
    Including your email address in a post is not recommended
    My Blog

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •