The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 04-11-2008
blowtorch's Avatar
blowtorch blowtorch is offline
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,323
Setting the max open files value

I'm trying to set the open files value to 4000 on a SLES 9 system.

Current values:
Code:
ulimit -n
1024
I can set it using this:
Code:
ulimit -n 4000
ulimit -n
4000
But this obviously sets it only for the shell session where I run the command to set it. I want to set this to 4000 for all time.

What I've tried so far:

Extract from /etc/security/limits.conf:
Code:
*       hard    nofile  4000
*       soft    nofile  4000
In the sshd and login files in /etc/pam.d,
Code:
grep pam_limits.so login sshd
login:session  required       pam_limits.so
sshd:session  required       pam_limits.so
What am I missing here? I even tried a reboot (I don't know if it was required, but the server isn't live, so I can experiment a bit :P)
Reply With Quote
Forum Sponsor