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

poweroff needs sudo #3

Open
Veix123 opened this issue Mar 11, 2022 · 1 comment
Open

poweroff needs sudo #3

Veix123 opened this issue Mar 11, 2022 · 1 comment

Comments

@Veix123
Copy link
Contributor

Veix123 commented Mar 11, 2022

add the configuration instructions to enable running the poweroff command without sudo for the non-privileged user.

@Veix123
Copy link
Contributor Author

Veix123 commented Mar 11, 2022

create a file /etc/sudoers.d/robotont_webapp, chmod with 440 and add the following content:
peko ALL=(ALL) NOPASSWD: /sbin/poweroff, /bin/systemctl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant