systemd icon indicating copy to clipboard operation
systemd copied to clipboard

systemctl reboot blocked if called via run0/sudo

Open thkukuk opened this issue 1 year ago • 1 comments

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 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'.

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'.

thkukuk avatar Aug 22 '24 13:08 thkukuk

/cc @bluca

poettering avatar Aug 22 '24 15:08 poettering