LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   PAM not working to set max number of files (http://www.linuxquestions.org/questions/linux-general-1/pam-not-working-to-set-max-number-of-files-554374/)

jmain_314159 05-16-2007 10:55 AM

PAM not working to set max number of files
 
I'm trying to set up the number of simultaneously open files per process via PAM for the entire system. I've set the following lines in /etc/security/limits.conf:
* soft nofile 4096
* hard nofile 4096

and added the line 'session required /lib/security/pam_limits.so' to the xdm,ssh, and login files in /etc/pamd. Still, even after a reboot the command 'ulimit -a' lists the max number of files as 1024 (default).

Does anyone know what I'm doing wrong?

One of the services (launched at boot) on this machine is running out of file descriptors and I need a way of increasing the limit.

Thanks


All times are GMT -5. The time now is 06:28 AM.