Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
limits.conf and PAM
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fargred
n00b
n00b


Joined: 19 Oct 2010
Posts: 67

PostPosted: Thu Feb 07, 2013 3:29 am    Post subject: limits.conf and PAM Reply with quote

In my /etc/security/limits.conf I have
Code:
# grep ^[^#] /etc/security/limits.conf
* hard nofile 8192
sszb              soft    nofile          8192
sszb              hard    nofile          16384
fargred              soft    nofile          8192
fargred              hard    nofile          16384

I have shadow built with PAM support
Code:
# equery u shadow
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-apps/shadow-4.1.4.3:
 U I
 - - audit    : Enable support for sys-process/audit
 + + cracklib : Support for cracklib strong password checking
 + + nls      : Adds Native Language Support (using gettext - GNU locale utilities)
 + + pam      : Adds support for PAM (Pluggable Authentication Modules) - DANGEROUS to
                arbitrarily flip
 - - skey     : Enable S/Key (Single use password) authentication support

And the line about pam_limits.so has its place in every configuration file that may be at least related to logging in.
Code:
# grep -rHi pam_limits.so /etc/pam.d/*
/etc/pam.d/atd:session required        pam_limits.so
/etc/pam.d/login:session required pam_limits.so debug
/etc/pam.d/system-auth:session      required   pam_limits.so
/etc/pam.d/system-auth-winbind:session     required      pam_limits.so
/etc/pam.d/system-login:session required pam_limits.so debug
/etc/pam.d/system-services:session      required   pam_limits.so

But every time I log in
Code:
$ ulimit -n
1024

I’ve read this topic but in /var/log/messages pam_unix is the only pam-related strings that are present, and I’m in doubt if it’s actually working?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Feb 07, 2013 7:51 am    Post subject: Reply with quote

I'd suggest PAM debugging.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum