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.