ulimit on RH9 now

From: Brian Noecker (bnoecker_at_jabber.com)
Date: 08/28/03

  • Next message: p p: "Building a RH9 custom install cd?"
    To: redhat-list@redhat.com
    Date: Thu, 28 Aug 2003 15:52:22 -0600
    
    

    Hey everyone, I'm still trying to chase down an issue which seems to be
    plaguing me. I've seen the issue in RH8, and now in RH9. Basically, I want
    to allow users to work with a larger soft and hard limit on their number
    open files available (ulimit -nS and ulimit -nH). This was simple to do in
    RH7.3, but something has changed in 8 and 9 which has made it not work by
    pervious instructions. Here's the settings that seemed to work in 7.3 to
    change the nofiles parameter of ulimit to higher values:

    In /etc/security/limits.conf you add the higher limits for both hard and
    soft limits:

    * soft nofile 10240
    * hard nofile 65536

    In /etc/pam.d/login you add the following to add to pam support:

    session required /lib/security/pam_limits.so

    Now, unfortunately, it does work if you su - to root, then su - to the user,
    but you must give the user sudo su to do that, and they won't su - back to
    themselves in most cases.

    Was there any specific changes in PAM in 8 and 9 which may effect this?
    Anyone else run into this?

    Thanks,
    Brian

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: p p: "Building a RH9 custom install cd?"

    Relevant Pages

    • Re: ulimit
      ... To prevent users from creating files with insecure ... locate files with insecure privileges, ... as popular as being the guy who locks down ulimit. ... if someone gets themselves in a jam by lowering their hard limit (which ...
      (comp.unix.solaris)
    • Re: RSS Limit implementation issue
      ... If you want to make rss a hard limit the result should be ... working_set_size limits sucked on VMS. ... even though there was adequate free memory. ... were much too low, and cause unnecessary swapping. ...
      (Linux-Kernel)
    • Re: Will wget download -
      ... Bob Goodwin - W2BOD wrote: ... My isp limits me to 5G down and 17G up in a 30 day period so I hate to waste bw. ... ulimit ... If it says something that starts with a number less than 3, you may not be able to complete the download. ...
      (Fedora)
    • Re: file descriptors
      ... >> File descriptor limits are assigned per process. ... not matter what you define with ulimit. ... The default values for "cur" and "max" differs in each Solaris version. ... The value rlim_fd_cur stands for soft limits while rlim_fd_max for hard ...
      (comp.unix.solaris)
    • Re: Bash builtin ulimit question
      ... Thanks everyone for the replies! ... >>all my current limits. ... is why does ulimit behave like this? ... > or to prevent naive users from consuming excessive resources. ...
      (comp.unix.shell)