You are not logged in.
TL;DR: When in tty I have 'ulimit -n == 8192' but in graphical environment I only get 'ulimit -n == 256'.
I'm running SLiM + WMII
For some games, I'm trying to increase the value of 'ulimit -n' but it does not work in graphical environment.
I added the following lines to /etc/security/limits.conf (I tried with username in place of stars before, and same result)
* soft nofile 8192
* hard nofile 8192And when I login via tty, I get
$ ulimit -n
8192So It I could say, it's working.
But in the graphical environment, I get:
$ ulimit -n
256I checked the '/etc/pam.d/slim', it contains
#%PAM-1.0
auth include system-local-login
-auth optional pam_gnome_keyring.so
account include system-local-login
session include system-local-login
-session optional pam_gnome_keyring.so auto_startand 'system-local-login' includes 'system-login' which includes 'system-auth' which has the line 'session required pam_limits.so', so it should be good.
And even if I add directly in the '/etc/pam.d/slim' the 'session required pam_limits.so' line, it does not work.
Now, I don't know what to do. Any help would be welcome.
Thank you in advance.
Last edited by cladmi (2013-05-24 22:31:55)
Offline
After further investigation, it looks like the problem comes from gnome-terminal.
Outside of it, ulimit -n == 8192 but in gnome-terminal ulimit -n == 256.
Offline