Two Arch Systems - Identical, loginctl shows TTY for one, not the other?
Devs, All, Recently across several distros there have been issues with loginctl not showing a TTY associated with a login. This has caused various issues with processes that rely on the user TTY for one thing or another. So I decided to test Arch on two backup servers, both current though today, both boot to multi-user target. On one box TTY=pts/0 is associated with my user login, on the other there is no TTY associated, e.g. 02:41 fenrir:~> loginctl show-session auto Id=1 User=1000 Name=david Timestamp=Sat 2024-08-31 02:37:24 CDT TimestampMonotonic=164549181 VTNr=0 TTY=pts/0 ^^^^^^^^^ Remote=yes RemoteHost=192.168.6.104 Service=sshd Scope=session-1.scope Leader=776 Audit=1 Type=tty Class=user Active=yes State=active IdleHint=no IdleSinceHint=1725090076000000 IdleSinceHintMonotonic=395959270 LockedHint=no The other: 02:40 valhalla:~> loginctl show-session auto Id=1 User=1000 Name=david Timestamp=Sat 2024-08-31 02:26:09 CDT TimestampMonotonic=32411169 VTNr=0 Remote=yes RemoteHost=192.168.6.104 Service=sshd Scope=session-1.scope Leader=712 Audit=1 Type=tty Class=user Active=yes State=active IdleHint=no IdleSinceHint=0 IdleSinceHintMonotonic=0 LockedHint=no How is that possible and what to check? Seems freedesktop.org and provided another mystery. Ideas? -- David C. Rankin, J.D.,P.E.
On Sat, 2024-08-31 at 02:49 -0500, David C. Rankin wrote:
Devs, All,
Recently across several distros there have been issues with loginctl not showing a TTY associated with a login. This has caused various issues with ...
Interesting - I am curious if loginctl list-sessions show anything useful? -- Gene
On 8/31/24 5:56 AM, Genes Lists wrote:
On Sat, 2024-08-31 at 02:49 -0500, David C. Rankin wrote:
Devs, All,
Recently across several distros there have been issues with loginctl not showing a TTY associated with a login. This has caused various issues with ...
Interesting - I am curious if
loginctl list-sessions
show anything useful?
Basically it shows the same thing. I'll have to start the other two backups up later this evening (they are loud as hell, old Supermicro 4U and 2U with a total of 12 38mm 7500 RPM fans) On two other boxes, I get: 06:10 2pi:~> loginctl list-sessions SESSION UID USER SEAT LEADER CLASS TTY IDLE SINCE 6 1000 david - 7423 user - no - 7 1000 david - 7429 manager - no - 2 sessions listed. and (booting to graphical target) 06:10 valkyrie:~> loginctl list-sessions SESSION UID USER SEAT LEADER CLASS TTY IDLE SINCE 89 620 lightdm - 11720 manager-early - no - 94 1000 david - 13259 user pts/0 no - 95 1000 david - 13266 manager - no - c2 620 lightdm seat0 11713 greeter - no - 4 sessions listed. and an opensuse Tumbleweed box booting to graphical target with kdm: 06:10 wizard:~> loginctl list-sessions SESSION UID USER SEAT LEADER CLASS TTY IDLE SINCE 1 1000 david seat0 1608 user - no - 2 1000 david - 1759 manager - no - 2 sessions listed. It also seems booting to graphical target depends on which DM is used. lightdm seems to ensure a TTY is seen while kdm and sddm don't. Stumbled across this issue on opensuse tumbleweed where lack of TTY broke several of their helper scripts for posting to paste.opensuse.org where TTY info was used to enable copy-to-clipboard. -- David C. Rankin, J.D.,P.E.
On Sat, 2024-08-31 at 14:00 -0500, David C. Rankin wrote:
On 8/31/24 5:56 AM, Genes Lists wrote:
For what its worth, here's what I see here. - ssh (login) sessions they all show "pts/N" - physical login get "ttyN" where N is some integer. Each tty shown by loginctl matches the output of 'tty' command in same login. Some remote have keyboard/display some dont. graphical logins handled by gdm. Non-login ssh have no tty (e.g. if I run: ssh <host> "loginctl list- sessions") So i am not able to reproduce what you're seeing. gene -- Gene
participants (2)
-
David C. Rankin
-
Genes Lists