View Single Post
Posts: 1,283 | Thanked: 370 times | Joined on Sep 2009 @ South Florida
#146
Originally Posted by qwerty12 View Post
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".
Same thing, opens two Xterms and leaves one while the other melts away.