Skip to content

Reboot and shutdown

Ardalan Samimi edited this page Jul 5, 2018 · 1 revision

Raspbot enables you to remotely shutdown or reboot your device, but for these commands to work the user running the server must have permission to execute sudo /sbin/reboot and sudo /sbin/shutdown (defined in the Makefile).

This can be done by adding the line

USERNAME ALL=NOPASSWD: /sbin/reboot,/sbin/shutdown

to /etc/sudoers, where USERNAME should be replaced with the username of the user running the server. Make sure to add it after any previous configurations for that user.