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
Show parent comment
1
u/Catenane May 13 '26
Reisub is always how I've always done it (and heard it recommended). You can also direct stdout to /proc/sysrq-trigger (e.g.
echo _reisub > /proc/sysrq-triggeraccording to kernel docs. I never knew you could do all at once prepending with an underscore until now lol), but that's surely also root-owned on any sane system.