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

Chris Hofstaedtler <[email protected]>
Newsgroups gmane.linux.debian.devel.ssh
Message-ID <ZzqGPVtcYXUuCT4O__23098.4073061094$1731888936$gmane$org@per.namespace.at>
On Sun, Nov 17, 2024 at 07:02:53AM +0100, Chris Hofstaedtler wrote:
> * Colin Watson <[email protected]> [241117 00:32]:
> > Control: forwarded -1 https://github.com/openssh/openssh-portable/pull/403
> > While reading up on this I ran across
> > https://github.com/openssh/openssh-portable/pull/403, whose description
> > sounds like the same thing.
> 
> Possible

I've now read up on the PR, and I think it will not solve the
problem.  Having the session recorded in wtmpdb is nice, but we
already have pam_wtmpdb for that.

who(1) talks to logind for getting currently logged in sessions.
wtmpdb is irrelevant for this.

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

We need that part to work (again?).

(I also think linking libwtmpdb.so into sshd is not a good idea.)

Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.