Description of problem: I added following line in /etc/security/limits.conf file - mi2 hard maxlogins 2 and logged as mi2 in tty1 and tty2. while trying to login to tty3 as mi2 it said "Too many logins" respawned the login process. Now i logged out from tty1 and tty2...I can't login as mi2 I can verify this using who command. Version-Release number of selected component (if applicable): How reproducible: 1.set maxlogin to 2 for user1 2.user1 logs into two different tty and another try gave message as "Too many login" 3.Now logout from early logged machine. 4.Now try and login as user1 again. you will error message "Too many users" Steps to Reproduce: 1.set maxlogin to 2 for user1 2.user1 logs into two different tty and another try gave message as "Too many login" 3.Now logout from early logged machine. 4.Now try and login as user1 again. you will error message "Too many users" Actual results: Unable to login Expected results: user must be allowed to login Additional info: Using Fedora 12.
Can you please post the rpm -q upstart output on your machine?
Here its $ rpm -q upstart upstart-0.3.11-3.fc12.x86_64 $uname -a Linux space 2.6.32.16-141.fc12.x86_64 #1 SMP Wed Jul 7 04:49:59 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
Please update upstart to 0.3.11-4.fc12 - this is in Fedora 12 updates repository.
upgraded to current version. # rpm -q upstart upstart-0.3.11-4.fc12.x86_64 Testing with user name : ll #grep 'maxlogins' /etc/security/limits.conf ll hard maxlogins 2 # >/var/log/secure who shows only laks: # who laks tty1 2010-09-13 15:19 (:0) laks pts/0 2010-09-13 15:20 (:0.0) I tried to login as ll ,as described above steps - # cat /var/log/secure Sep 13 15:25:09 localhost login: pam_limits(login:session): Too many logins (max 2) for ll Sep 13 15:25:09 localhost login: pam_unix(login:session): session opened for user ll by ll(uid=0) Sep 13 15:25:10 localhost login: pam_limits(login:session): Too many logins (max 2) for ll Sep 13 15:25:10 localhost login: Permission denied Is this a know issue/bug ? It's not yet resolved.
Please let me know,If you need more info.
Have you rebooted the computer after the upgrade?
Yes,after yum install , i rebooted the machine and tested with user "ll". I have Selinux enabled.
Strange, it seems like working now for the first time.-I can live with that -,but not everytime. ========= see who shows only two logins - [root@space laks]# who new1 tty5 2010-09-13 16:26 new1 tty3 2010-09-13 16:27 while trying to login it shows - # cat /var/log/secure Sep 13 16:36:20 localhost login: pam_limits(login:session): Too many logins (max 3) for new1 Sep 13 16:36:20 localhost login: pam_unix(login:session): session opened for user new1 by new1(uid=0) Sep 13 16:36:20 localhost login: pam_limits(login:session): Too many logins (max 3) for new1 Sep 13 16:36:20 localhost login: Permission denied =========== (above log not related to below steps) -------- Steps to follow - to reproduce: 0.set maxlogin limit as 3 1.login as new1 in tty1,tty2,tty3 2.whiling logging to tty4 it says "Too many logins" 3.logout of tty3 4.login to tty4 it work now. But If i randomly logout and login again. this issue comes again. 5.logout of 1,2 6.login to tty5 it says "too many logins" Something is wrong,i don't know what it is.
It works if i wait for a minute and then login again.the issue is fixed for me.
It seems like upstart does not clean the USER_PROCESS entries immediately.
upstart-0.3.11-5.fc12 has been submitted as an update for Fedora 12. https://admin.fedoraproject.org/updates/upstart-0.3.11-5.fc12
upstart-0.6.5-6.fc13 has been submitted as an update for Fedora 13. https://admin.fedoraproject.org/updates/upstart-0.6.5-6.fc13
upstart-0.6.5-9.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/upstart-0.6.5-9.fc14
upstart-0.6.5-9.fc14 has been pushed to the Fedora 14 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update upstart'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/upstart-0.6.5-9.fc14
upstart-0.6.5-6.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
upstart-0.6.5-9.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report.
upstart-0.3.11-5.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.