Package: libpam-modules Version: 1.1.1-6.1
A used loggs off. limits have been set to limits.conf for maxlogins(2) @common - maxlogins 2 When he tries to reconnect he takes a Too many logins message and get disconnected. who command does not show him connected to the box.ps -aux, top does not show any proccess by him. last | grep <user> show he is logged off root@xxxx:/var/spool/cron/crontabs# ps -u avn PID TTY TIME CMD root@:/var/spool/cron/crontabs# ps -aux | grep avn Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html root 8588 0.0 0.0 3544 756 pts/79 S+ 14:47 0:00 grep avn At the same time my logs shows: pam_limits(sshd:session): checking if avn is in group common May 19 14:44:28 xxxx sshd[7173]: pam_limits(sshd:session): checking if avn is in group common May 19 14:44:28 xxxx sshd[7173]: pam_limits(sshd:session): checking if avn is in group common May 19 14:44:28 xxxx sshd[7173]: pam_limits(sshd:session): checking if avn is in group open May 19 14:44:28 xxxx sshd[7173]: pam_limits(sshd:session): checking if avn is in group open May 19 14:44:28 xxxx sshd[7173]: pam_limits(sshd:session): checking logins for 'avn' (maximum of 2) May 19 14:44:28 xxxx sshd[7173]: pam_limits(sshd:session): Too many logins (max 2) for avn My limits.conf is @common - maxlogins 2 @common hard nproc 50 @open - maxlogins 2 @open hard nproc 50 john - maxlogins 10 Removing pam_limits.so from /etc/pam.d/sshd lets the user logged on again. I am using Linux xxxx 2.6.32-5-686 #1 SMP Wed Jan 12 04:01:41 UTC 2011 i686 GNU/Linux John Kalergis