Set a group limit of @users - maxlogins 2 in /etc/security/login.conf but members of the users group can login as many times as they wish either at the console or through ssh. Verified pam_limits.so is in system-auth for both login and sshd. If I set a specific user limit, such as user1 - maxlogins 1, the limit is enforced. Reproducible: Always Steps to Reproduce: 1. Set @users - maxlogins 1 in /etc/security/limits.conf 2. By default, newly created accounts are given gid 100 (users) 3. Make sure session required /lib/security/pam_limits.so is in system-auth which is called by login and sshd. 4. Login as many times as you want, either at the console or ssh. Actual Results: Logged in 5 times via ssh. Closed all ssh connections. Was able to login 5+ times at the console. Doesn't seem to matter where. Expected Results: Should have enforced a limit of 1 login for the users group.
is this still an issue?
Quite honestly, I don't know if it's still broken or fixed. When I realized I couldn't use this feature (and a fix was not close at hand), I had to move on. If necessary, I can test this feature again on the Gentoo box I'm bringing up now; however, it might be a few days as this is a stage 1 install.
Please, test with sys-libs/pam-0.78-r2 and reopen if there are still problems.