Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

max-files configuration

Status
Not open for further replies.

rp285598

Programmer
Sep 11, 2002
1
US
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 &quot;session required /lib/security/pam_limits.so&quot; to the appropriate PAM files.
 
&quot;ulimit -a&quot; shows which values have been set. &quot;ulimit -n 2000&quot; 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.


ChrisP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top