I'm trying to set the open files value to 4000 on a SLES 9 system.
Current values:
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)