Debian, limits and pam
Hi all,
I'm sure someone here runs vserver and came across this problem in the
past. Basically, every root logins (from remote or cron), auth.log gets
the following message,
Aug 14 10:59:56 mail sshd[31167]: (pam_unix) session opened for user
root by root(
uid=0)
Aug 14 10:59:56 mail pam_limits[31167]: setrlimit limit #11 to soft=-1,
hard=-1 fa
iled: Operation not permitted; uid=0 euid=0
Aug 14 10:59:56 mail pam_limits[31167]: setrlimit limit #12 to soft=-1,
hard=-1 fa
iled: Operation not permitted; uid=0 euid=0
And of course it is not unlimited, but,
POSIX message queues (bytes, -q) 819200
pending signals (-i) 8191
(limited by vserver itself)
*BUT* I have in /etc/security/limits.conf
* soft sigpending 2179
* hard sigpending 5375
* soft msgqueue 819200
* hard msgqueue 819200
and /etc/pam.d/{cron,su,ssh} all have,
session required pam_limits.so
So what is going on here? Why is pam or something trying to set these
limits as MORE than in the config files?
I *did* not have these messages until I rebooted the vserver machine.
Now I'm getting these *only* in one vserver.
- Adam
Reply to: