Open mdeguzis opened 9 years ago
The line you're looking for is on line 43 of es-core/src/platform.cpp. I'm guessing this is a permissions issue. I have no idea what the "proper" way to ask the system to shut down is on Linux as a non-superuser.
ok I will take a look at that line and see what I can come up with. What I will likely do is add my user to the sbin reboot and shutdown commands (possibly) in the sudoers file. Either that, or come up with some kind of hack.
Something akin to:
user ALL=(ALL) NOPASSWD: /sbin/poweroff, /sbin/reboot, /sbin/shutdown
Not sure if there is a safer way, but only allowing a specific user allowance to shutdown and reboot seems to be the least of the methods I have seen. I'd rather not set the suid on /sbin files.
The shutdown or restart command fails with:
I am fine changing the line of code that I am guessing issues
sudo shutdown -h now
to something that works from the terminal. Is this something you can help me with? Maybe I am missing something, but nothing in the dotfile configs popped out at me right away.