We are running RedHat 7.2 with the 2.4 kernel. I'm trying to find out how to set a hard limit and soft limit for open files for users. Does anyone know how to do this and the steps involved?
use the ulimit utility and the file /etc/security/limits.conf. <help ulimit>. You also have to add the line "session required /lib/security/pam_limits.so" to the appropriate PAM files.
"ulimit -a" shows which values have been set. "ulimit -n 2000" specifies the maximum number of open files (2000 in this example). I'm not sure what all of jaymzter's instructions do, so I could be wrong and there is more involved than what I told you.
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.