Bug#1108375: sshd logout error

Srinivas Uppoju <[email protected]>
Newsgroups gmane.linux.debian.devel.ssh
Message-ID <CADvHcgZZeQmRMoPWXPKcT+vk4Jtx7CiQ53PhckauciM3cGCqtA__27612.1928634652$1751012612$gmane$org@mail.gmail.com>
Package: openssh-server

Version: 1:10.0p1-5

The sshd-session module is throwing below errors when user logs out of
the system.
/var/log/wtmp and /var/log/lastlog files are removed in the latest
version of linux/debian but the sshd modules tries to read/write from
these files when user logs out.

./auth.log:Jun 23 06:19:18 ims-debian-server sshd-session[25834]:
syslogin_perform_logout: logout() returned an error
./auth.log:Jun 23 06:36:43 ims-debian-server sshd-session[27776]:
syslogin_perform_logout: logout() returned an error
./auth.log:Jun 23 07:08:41 ims-debian-server sshd-session[29566]:
syslogin_perform_logout: logout() returned an error
./auth.log:Jun 23 09:43:05 ims-debian-server sshd-session[29701]:
syslogin_perform_logout: logout() returned an error
./auth.log:Jun 23 10:20:12 ims-debian-server sshd-session[30442]:
syslogin_perform_logout: logout() returned an error
./auth.log:Jun 23 10:47:33 ims-debian-server sshd-session[32117]:
syslogin_perform_logout: logout() returned an error

I suggest openssh module should be built with right flags (Disable
WTMP, LAST_LOG, UTMP)

I am using 6.12.30-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.30-1
(2025-05-28) x86_64 GNU/Linux
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.