systemd
systemd copied to clipboard
systemctl reboot blocked if called via run0/sudo
systemd version the issue has been seen with
257 git20240818
Used distribution
openSUSE MicroOS/Tumbleweed 20240820
Linux kernel version used
6.10.5-1-default
CPU architectures issue was seen on
x86_64
Component
No response
Expected behaviour you didn't see
If only one user is logged in and he runs "run0 systemctl reboot" or "run0 systemctl soft-reboot", this should succeed as if the user would have logged in on console as root.
Unexpected behaviour you saw
User
Steps to reproduce the problem
ssh to a remote server as normal user no other user is logged in try to reboot with "run0 systemctl reboot" or "sudo systemctl reboot", or become root with "su".
Additional program output to the terminal or log subsystem illustrating the issue
User <user> is logged in on pts/0.
Please retry operation after closing inhibitors and logging out other users.
'systemd-inhibit' can be used to list active inhibitors.
Alternatively, ignore inhibitors and users with 'systemctl soft-reboot -i'.
/cc @bluca