Skip to content
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

On most systems shutdown or reboot needs sudo #11

Closed
sandrodz opened this issue Mar 13, 2018 · 1 comment
Closed

On most systems shutdown or reboot needs sudo #11

sandrodz opened this issue Mar 13, 2018 · 1 comment
Labels
enhancement New feature or request solved

Comments

@sandrodz
Copy link

sandrodz commented Mar 13, 2018

https://github.com/DeadManWalkingTO/ETHminerWatchDogDmW/blob/master/ETHminerWatchDogDmW.sh#L113

This won't work if script is run by non root user (which is the case in most cases).

On my system I do this by creating a file /etc/sudoers.d/reboot
with:
sandro ALL=NOPASSWD:/sbin/reboot

Maybe this should be mentioned in Readme?

@DeadManWalkingTO
Copy link
Owner

Yes. Thank you!

@DeadManWalkingTO DeadManWalkingTO added solved enhancement New feature or request labels Oct 22, 2018
Repository owner locked as resolved and limited conversation to collaborators Oct 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request solved
Projects
None yet
Development

No branches or pull requests

2 participants