Bug 1217771 - Please add support for systemd-logind in utempter
Summary: Please add support for systemd-logind in utempter
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: All openSUSE Tumbleweed
: P4 - Low : Minor (vote)
Target Milestone: ---
Assignee: Marcus Meissner
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-04 11:52 UTC by Dr. Werner Fink
Modified: 2023-12-27 10:06 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dr. Werner Fink 2023-12-04 11:52:18 UTC
Curently the utempter helper isn't work anymore due to the migration from
utmp/wtmp support to systemd-logind.  It would be nice to have a support
for systemd-logind in (lib)utempter as well as currently no login session via
e.g. XTerm is seen anymore.
Comment 1 Thorsten Kukuk 2023-12-04 13:30:13 UTC
(In reply to Dr. Werner Fink from comment #0)
> Curently the utempter helper isn't work anymore due to the migration from
> utmp/wtmp support to systemd-logind.  It would be nice to have a support
> for systemd-logind in (lib)utempter as well as currently no login session via
> e.g. XTerm is seen anymore.

With systemd-logind we don't need libutempter anymore, libsystemd is taking over.

As explained in my talks and mails, xterm is not visible anymore because it is no login session, systemd-logind explicit rejects all additions which are not a new login session (don't remember currently anymore how it checks it, somehow if the PID is a new group or so). 
Historically xterm only created a utmp entry so that the user could see the wall messages. This needs to be solved by the Desktop environment (e.g. on GNOME you will not see any wall messages, the sender get's only an error, on KDE you get flooded with this wall messages...).
Comment 2 Dr. Werner Fink 2023-12-04 13:52:47 UTC
I'm using the option -ls for XTerm aka use a login shell to be able to see wall
messages ... now the feature is simply dropped?
Comment 3 Dr. Werner Fink 2023-12-04 13:59:10 UTC
One other problem is that the implementation of read_utmp_from_systemd() for coreutils (GPL-3.0-or-later) can be ported to tcsh this is BSD-3-Clause