Files
webmin/useradmin/linux-lib.pl
Ilia Ross 7522fbb249 Fix logged-in user detection without utmp
This patch fixes missing SSH logins on systems without `utmp`, including Ubuntu 26.04.

It adds a Systemd session helper, excludes manager and Webmin and Usermin sessions keeping `who` as the fallback and existing backend where `utmp` is present.

This complements mine earlier https://github.com/webmin/webmin/commit/8417d5c patch, which fixed parsing but could not get sessions missing from `who` output.

Tested on Ubuntu 26.04 Pro and AlmaLinux 10 Pro with both local live test and suites pass.
2026-10-18 16:11:20 +02:00

6.6 KiB
Executable File