sddm-helper (login screen) hangs with pam_limits maxlogins
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sddm (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
sddm-helper hangs when user tries to login more then maxlogins PAM limit. No mouse/keyboard control possible, only VT change possible.
HOW TO REPRODUCE:
1. Activate PAM maxlogins limit for the user (max 1 session for user basia):
$ echo 'basia - maxlogins 1' | sudo tee /etc/security/
2. Start first plasma session from SDDM login screen:
$ loginctl -n 500 session-status 43
[...]
Apr 24 21:12:22 slodki systemd[1]: Started Session 43 of user basia.
Apr 24 21:12:22 slodki sddm-helper[20244]: pam_unix(
Apr 24 21:12:22 slodki sddm-helper[20244]: pam_systemd(
Apr 24 21:12:22 slodki sddm-helper[20244]: pam_kwallet(
Apr 24 21:12:22 slodki sddm-helper[20244]: pam_kwallet(
Apr 24 21:12:22 slodki sddm-helper[20244]: pam_kwallet5(
Apr 24 21:12:22 slodki sddm-helper[20244]: pam_kwallet5(
Apr 24 21:12:22 slodki sddm-helper[20244]: Starting: "/etc/sddm/
Apr 24 21:12:22 slodki sddm-helper[20252]: Adding cookie to "/home/
[...]
3. Switch to new user (new session) and start 2nd user session from SDDM login screen:
$ loginctl -n 500 session-status 46
46 - basia (1002)
Since: Mon 2017-04-24 21:12:48 CEST; 15min ago
Leader: 20640 (sddm-helper)
Seat: seat0; vc9
Display: :2
Service: sddm; type x11; class user
Desktop: KDE
State: online
Unit: session-46.scope
Apr 24 21:12:48 slodki systemd[1]: Started Session 46 of user basia.
Apr 24 21:12:48 slodki sddm-helper[20640]: pam_unix(
Apr 24 21:12:48 slodki sddm-helper[20640]: pam_systemd(
Apr 24 21:12:48 slodki sddm-helper[20640]: pam_kwallet(
Apr 24 21:12:48 slodki sddm-helper[20640]: pam_kwallet(
Apr 24 21:12:48 slodki sddm-helper[20640]: pam_kwallet5(
Apr 24 21:12:48 slodki sddm-helper[20640]: pam_kwallet5(
Apr 24 21:12:48 slodki sddm-helper[20640]: [PAM] openSession: Permission denied
RESULT:
sddm-helper hangs after PAM blocking new user session, logind status of that session is active, must be killed with
$ sudo loginctl terminate-session 46
EXPECTED RESULT:
a) message displayed that session cannot be started due to PAM restrictions
b) logind and X sessions closed
c) seat active session switched to previous one
System: Kubuntu zesty amd64
sddm 0.13.0-1ubuntu5
ibpam-kwallet5 4:5.9.4-0ubuntu1
libpam-modules-bin 1.1.8-3.2ubuntu2
libpam-
systemd 232-21ubuntu3