-
Notifications
You must be signed in to change notification settings - Fork 905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shutdown fails to work on Ubuntu 14.04 / 14.10 #349
Comments
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:
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. |
Fixes issue Aloshi#349
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.The text was updated successfully, but these errors were encountered: