Public bug reported:
It looks like login session from a second seat does get initialised
properly. I have two seats logged in, and this is what I observe:
**Only one session is reported by loginctl**:
```
loginctl list-sessions
SESSION UID USER SEAT TTY
4 1000 dimanne seat0 tty2
1 sessions listed.
```
**Directory `/run/user/1001` is not created for 2nd seat**.
**`DBUS_SESSION_BUS_ADDRESS` of the second user is empty**.
**systemctl --user list-units prints**:
```
Failed to connect to bus: No medium found
```
**Finally, `loginctl session-status` says**:
```
Could not get properties: Unknown object 'org/freedesktop/login1/session/auto'
```
### Why it happens
I think this happens because sddm failed to properly initialise login
session.
This is how sddm logs look for "good" login:
```
Aug 20 09:52:17 impedance sddm[8212]: Authentication for user "dimanne"
successful
Aug 20 09:52:17 impedance sddm-greeter[8590]: Message received from daemon:
LoginSucceeded
Aug 20 09:52:17 impedance sddm-helper[9033]: pam_kwallet5(sddm:setcred):
pam_kwallet5: pam_sm_setcred
Aug 20 09:52:17 impedance sddm-helper[9033]: pam_limits(sddm:session): Could
not set limit for 'nofile' to soft=16777216, hard=16777216: Operation not
permitted; uid=0,euid=0
Aug 20 09:52:17 impedance sddm-helper[9033]: pam_unix(sddm:session): session
opened for user dimanne(uid=1000) by (uid=0)
Aug 20 09:52:17 impedance sddm-helper[8362]: [PAM] Closing session
Aug 20 09:52:17 impedance sddm-helper[8362]: pam_unix(sddm-greeter:session):
session closed for user sddm
Aug 20 09:52:17 impedance sddm-helper[8362]: [PAM] Ended.
Aug 20 09:52:17 impedance sddm[8212]: Auth: sddm-helper exited successfully
Aug 20 09:52:17 impedance sddm[8212]: Greeter stopped.
SDDM::Auth::HELPER_SUCCESS
Aug 20 09:52:17 impedance sddm-helper[9033]: pam_kwallet5(sddm:session):
pam_kwallet5: pam_sm_open_session
Aug 20 09:52:17 impedance sddm-helper[9078]: pam_kwallet5: final socket path:
/run/user/1000/kwallet5.socket
Aug 20 09:52:17 impedance sddm-helper[9033]: pam_env(sddm:session): deprecated
reading of user environment enabled
Aug 20 09:52:17 impedance sddm-helper[9033]: Writing cookie to
"/tmp/xauth_vDhCDz"
Aug 20 09:52:17 impedance sddm-helper[9033]: Starting X11 session: ""
"/etc/sddm/Xsession \"/usr/bin/startplasma-x11\""
Aug 20 09:52:17 impedance sddm[8212]: Session started true
Aug 20 12:27:05 impedance sddm-greeter[8534]: Reading from
"/usr/share/xsessions/plasma.desktop"
```
And this is how they look for 2nd seat
```
Aug 20 12:27:05 impedance sddm[8212]: Authentication for user "yulia"
successful
Aug 20 12:27:05 impedance sddm-greeter[8534]: Message received from daemon:
LoginSucceeded
Aug 20 12:27:05 impedance sddm-helper[56829]: pam_kwallet5(sddm:setcred):
pam_kwallet5: pam_sm_setcred
Aug 20 12:27:05 impedance sddm-helper[56829]: pam_limits(sddm:session): Could
not set limit for 'nofile' to soft=16777216, hard=16777216: Operation not
permitted; uid=0,euid=0
Aug 20 12:27:05 impedance sddm-helper[56829]: pam_unix(sddm:session): session
opened for user yulia(uid=1001) by (uid=0)
Aug 20 12:27:05 impedance sddm-helper[56829]: pam_systemd(sddm:session): Failed
to create session: TTY tty1 is virtual console but seat seat1 is not seat0
Aug 20 12:27:05 impedance sddm-helper[56829]: pam_kwallet5(sddm:session):
pam_kwallet5: pam_sm_open_session
Aug 20 12:27:05 impedance sddm-helper[56832]: pam_kwallet5: final socket path:
/tmp/kwallet5_yulia.socket
Aug 20 12:27:05 impedance sddm-helper[56829]: pam_env(sddm:session): deprecated
reading of user environment enabled
Aug 20 12:27:05 impedance sddm-helper[56829]: Writing cookie to
"/tmp/xauth_MzDsqA"
Aug 20 12:27:05 impedance sddm-helper[56829]: Starting X11 session: ""
"/etc/sddm/Xsession \"/usr/bin/startplasma-x11\""
Aug 20 12:27:05 impedance sddm[8212]: Session started true
Aug 20 12:27:05 impedance sddm-helper[8399]: [PAM] Closing session
Aug 20 12:27:05 impedance sddm-helper[8399]: pam_unix(sddm-greeter:session):
session closed for user sddm
Aug 20 12:27:05 impedance sddm-helper[8399]: [PAM] Ended.
Aug 20 12:27:05 impedance sddm[8212]: Auth: sddm-helper exited successfully
Aug 20 12:27:05 impedance sddm[8212]: Greeter stopped.
SDDM::Auth::HELPER_SUCCESS
```
Note:
`Failed to create session: TTY tty1 is virtual console but seat seat1 is
not seat0`
It has been broken for some time, and it is surprising that it was
picked for LTS Ubuntu 24.04:
* https://github.com/sddm/sddm/issues/1762
* https://github.com/sddm/sddm/issues/1769
* https://github.com/sddm/sddm/issues/1778
* https://github.com/sddm/sddm/issues/1786
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: sddm 0.20.0-2ubuntu4
ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
Uname: Linux 6.8.0-31-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.28.1-0ubuntu3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Sat May 25 19:40:01 2024
InstallationDate: Installed on 2023-08-15 (284 days ago)
InstallationMedia: Kubuntu 23.10 "Mantic Minotaur" - Daily amd64 (20230815)
SourcePackage: sddm
UpgradeStatus: Upgraded to noble on 2024-05-24 (1 days ago)
** Affects: sddm (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug noble
** Summary changed:
- sddms in Ubuntu 24.04 completely breaks multi-seat login
+ sddm in Ubuntu 24.04 completely breaks multi-seat login
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2067170
Title:
sddm in Ubuntu 24.04 completely breaks multi-seat login
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sddm/+bug/2067170/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs