[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1087644: openssh-server: no tty associated with login session



* Colin Watson <cjwatson@debian.org> [241117 00:32]:
> Control: forwarded -1 https://github.com/openssh/openssh-portable/pull/403
> 
> On Sat, Nov 16, 2024 at 05:14:38PM +0100, Chris Hofstaedtler wrote:
> > Recently I've become aware of ssh sessions no longer showing a value for "TTY"
> > in w(1) and loginctl list-sessions. I think this leads to issues like wall(1) /
> > shutdown / ... not delivering messages to the terminals of users logged in via
> > ssh.
> [...]
> > I don't know if the observed behaviour is an effect of utmp going
> > away, or caused by other changes in sshd. Could you please check
> > what's going on there?
> 
> While reading up on this I ran across
> https://github.com/openssh/openssh-portable/pull/403, whose description
> sounds like the same thing.

Possible, but that will not fix reporting the tty to logind. I'm
wondering if something in sshd changed so that the tty is not
available/visible to PAM anymore?

If PAM knows about the tty, pam_systemd.so and pam_wtmpdb.so should
hopefully just record it.

Chris


Reply to: