r/linuxadmin
•
u/turkeytime808
•
May 12 '26
•
1
Reboot without Root!
Hello all,
What I am attempting to do is restart a RHEL 8 Server that does not have root access. I had implemented a security guideline that booted all my users out sudoers conf file. For that reason, I am unable to sudo up to initiate the reboot. I was looking at editing the polkit file to set a rule to allow the reboot from another user. That file is owned by root.
The error that is appearing when attempting execute from a non-root user is: failed to set wall message, ignoring interactive authentication required. failed to reboot systemd via logind failed to open initctl fifo permission denied failed to talk to init daemon.
View all comments
2
u/aioeu May 12 '26 edited May 13 '26
should be all you need. Just drop it into a
/etc/polkit-1/rules.d/50-local.rulesfile. You might also wantorg.freedesktop.login1.reboot-multiple-sessions, depending on your use-case.org.freedesktop.login1.reboot/reboot-multiple-sessionsboth implyorg.freedesktop.login1.set-wall-message, so there's no need to define any extra policy for that.(Edit: I missed that you don't already have root access on the system — I thought you were just trying to set things up so that a non-root user could reboot the system. Yes, you need to sort out your root access first. Or just be a local user, not a remote user. Local users can reboot the system by default, since they can always just hit the power button.)