Salandora / OctoPrint-SystemCommandEditor

This plugin makes System Commands editable through the OctoPrint WebUI
GNU Affero General Public License v3.0
9 stars 10 forks source link

I cant configure Reboot button #6

Closed McKaNaN closed 7 years ago

McKaNaN commented 7 years ago

I like put a "Reboot" button in OctoPrint but I cant and I dont understand.

I put this text in configuration menu:

name: reboot action: reboot command: sudo reboot

But dont work. Shows me a message:

_The command "Reboot" could not be executed.

Command failed with return code 1: STDOUT: STDERR: sudo: no tty present and no askpass program specified_

What can I do?

Salandora commented 7 years ago

Well that's a problem with your sudoers config, sudo is asking for a password which can't be supplied.

you'll need to adapt the sudoers file to get it working. maybe a "sudo shutdown -r now" is already configured correctly

McKaNaN commented 7 years ago

Yes! Work it! The problem was the sudoers permissions.

Thanx!!!