Reboot without Root!

Posted by turkeytime808@reddit | linuxadmin | View on Reddit | 25 comments

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.