-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
rhel-9.4
-
No
-
Low
-
rhel-sst-cs-plumbers
-
ssg_core_services
-
5
-
False
-
-
None
-
None
-
None
-
None
-
None
What were you trying to do that didn't work?
Once the timeout specified in the StopIdleSessionSec expires, logind kills user processes even though KillUserProcesses=no is also set.
Please provide the package NVR for which bug is seen:
systemd-252-32.el9_4
How reproducible:
deterministic
Steps to reproduce
- # vim /etc/systemd/logind.conf
[Login] StopIdleSessionSec=60 KillUserProcesses=no ...
- Reboot the system or do systemctl reload-or-restart systemd-logind.service
- Once systemd-logind.service is reloaded start a new tmux session and run sleep command there, e.g.:
tmux new -s sleep sleep 1d # then Ctrl+b and d (detach)
- Wait 60s and your TTY / serial console / ssh session should be stopped.
Expected results
Session is stopped after 60s but when user logs in afterwards, they should still see their tmux session and other processes they started in their session before it was stopped.
Actual results
Session is stopped after 60s and all user processes are killed.
Why is it needed
To use logind to implement idle user sessions termination while preserving running user programs such as tmux (so users are able to login after their session terminates and continue where they left off). This is needed to satisfy requirements coming from security policies, e.g. STIG - https://stigaview.com/products/rhel9/v1r3/RHEL-09-412080/
- is duplicated by
-
RHEL-66580 tmux is killed when the StopIdleSessionSec times out.
- Closed
- links to