View Single Post
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#144
Originally Posted by les_garten View Post
Mine did the same thing.

Might be able to cobble something together with low permissions with setuid possibly. But would not want to do that though.
sudo could probably be abused for this:

Code:
sudo gainroot
echo "user ALL = NOPASSWD: /sbin/reboot" > /etc/sudoers.d/reboot.sudoers
update-sudoers
After that, change your reboot entry to run "sudo reboot".
 

The Following 4 Users Say Thank You to qwerty12 For This Useful Post: