r/linuxadmin • • May 12 '26 • Bravo 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.

19 Upvotes

31 comments sorted by

View all comments

Show parent comment

6

u/cusco May 13 '26

The Linux stuff that works is SysRQ + s, u, b

However I’m assuming the server is remote and no physical access exists

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-trigger according 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.

1

u/cusco May 14 '26

There are many flags for SysRq. Ibjust mentioned the minimal yet graceful

So yes, physical access works