Bug 8606 - missing utmp on SLE 16
Summary: missing utmp on SLE 16
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: VSM Agent (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: ---
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-11 16:31 CEST by Madeleine
Modified: 2025-07-08 13:28 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Madeleine cendio 2025-06-11 16:31:29 CEST
When starting a new session with "End existing session" enabled on SLE 16, you get these messages in /var/log/vsmagent.log:

> 2025-06-11 12:44:12 WARNING tl-session: pututxline: No such file or directory
> 2025-06-11 12:44:13 WARNING tl-session: pututxline: No such file or directory
> 2025-06-11 12:44:13 INFO vsmagent.session: Verified connectivity to newly started Xvnc for cendio
> 2025-06-11 12:44:13 INFO vsmagent: Unable to open /etc/ssh/sshd_config for reading: [Errno 2] No such file or directory: '/etc/ssh/sshd_config'
Comment 1 Madeleine cendio 2025-06-11 16:43:53 CEST
It seems like the warning about pututxline is caused by a missing utmp file which is required for recording user login sessions via pututxline. The warning goes away after manually creating the file: 
> sudo touch /var/run/utmp
Comment 2 Madeleine cendio 2025-06-11 17:05:47 CEST
The sshd_config file is located at /usr/etc/ssh/sshd_config on SLE 16. The warning disappears if you copy it to /etc/ssh/:
> sudo cp /usr/etc/ssh/sshd_config /etc/ssh/
Comment 3 Madeleine cendio 2025-06-18 13:51:04 CEST
Since these log messages concern separate issues, I'm splitting them into separate bugs. The warning about sshd_config has been moved to bug 8612.
Comment 4 Madeleine cendio 2025-07-01 12:58:58 CEST
I have looked a bit further on this. The issue is as pointed out earlier that we get the warning "pututxline: No such file or directory" in the vsmagent log. pututxline() is a function in glibc used to write to utmp when logging terminal sessions.

After looking into what has changed in SUSE 16 Beta, I noticed that the release notes mention that SysV init support has been dropped [1]. It does not explicitly state what replaces SysV init, but it says that SUSE 16 Beta is based on SUSE Linux Framework One (formerly ALP), which uses systemd. This means that several traditional mechanisms for starting/stopping services and files under /var/run are affected.

I compared SLES 16 Beta and SLES 15 after running tl-setup and can confirm that several changes have occurred in /var/run. In addition to utmp being affected, I also found that cups and netconfig are missing in SLES 16. As a quick check to verify that things have changed under the hood, I noted that the who output looks different between SLES 16 and 15, and last shows that it uses wtmp on SLES 15 and wtmpdb on SLES 16 Beta.

My current suspicion is that we are still trying to use pututxline() because autoconf for client/openssh detects that it is available. What are the consequences of this issue?

[1] https://news.opensuse.org/2025/04/30/leap-16-enters-beta/
Comment 5 Madeleine cendio 2025-07-08 13:28:35 CEST
I searched for utmp on SUSE 16 Beta:
> sudo find / -name '*utmp*'

and this is what I found (apart from some stuff in /.snapshots/):
> /usr/lib/perl5/vendor_perl/5.40.1/x86_64-linux-thread-multi/bits/utmp.ph
> /usr/lib/perl5/vendor_perl/5.40.1/x86_64-linux-thread-multi/bits/utmpx.ph
> /usr/lib/perl5/vendor_perl/5.40.1/x86_64-linux-thread-multi/utmp.ph
> /usr/lib/perl5/vendor_perl/5.40.1/x86_64-linux-thread-multi/utmpx.ph
> /usr/share/man/man1/utmpdump.1.gz
> /usr/share/bash-completion/completions/utmpdump
> /usr/bin/utmpdump

So it looks like utmp has been replaced.

Note You need to log in before you can comment on or make changes to this bug.