[Wine] ulimit -n ignored/ Max files reached

Darragh Bailey felix at compsoc.nuigalway.ie
Fri May 15 11:17:55 CDT 2009


On Fri, May 15, 2009 at 10:11:50AM -0500, houkouonchi wrote:
> Unfortunately editing /etc/security/limits.conf doesn't seem 
> to be doing crap on my machine (gentoo). This is when starting 
> a new X session or ssh session (even after restarting sshd).

I'll have to check that later at home, not running gentoo at work. I
suspect however that it means that pam isn't configured to use the
limits module.

I would check that the file /etc/pam.d/system-auth contains the
following line:
session     required      pam_limits.so

Most of the other files should be including the system-auth file.

Otherwise it would mean that pam is not going to read the limits file 
when starting any sessions so any changes there will be ignored.


btw, this is getting a little off topic, and you would probably get a
more complete answer from the gentoo forums as this has strayed into the
realm of how to configure pam correctly on gentoo. It's unlikely that
you'll get fully complete answers here. If the above doesn't help you I
would suggest looking at the following:
http://www.gentoo.org/doc/en/security/security-handbook.xml?part=1&chap=7
http://www.gentoo.org/doc/en/security/security-handbook.xml?part=1&chap=5#limits_conf

And if those don't help, you'll really need to post the problem with
adjusting the open file limit in the gentoo forums and solve that 
first before trying to get any further help here.

-- 
Darragh

"Nothing is foolproof to a sufficiently talented fool."



More information about the wine-users mailing list