Allow octoprint user to perform system functions

Required in order to use the commands under `Settings > Octoprint > Server > Commands`.
For version 1.10.2, note that those commands are typically:
```
sudo systemctl restart octoprint
sudo reboot
sudo shutdown now
```
pull/3444/head
Kieran Hannigan 12 months ago committed by GitHub
parent bfce73c0ed
commit e0b1e24b7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      install/octoprint-install.sh

@ -37,6 +37,7 @@ msg_info "Creating user octoprint"
useradd -m -s /bin/bash -p $(openssl passwd -1 octoprint) octoprint
usermod -aG sudo,tty,dialout octoprint
chown -R octoprint:octoprint /opt
echo "octoprint ALL=NOPASSWD: $(command -v systemctl) restart octoprint, $(command -v reboot), $(command -v poweroff)" > /etc/sudoers.d/octoprint
msg_ok "Created user octoprint"
msg_info "Installing OctoPrint"

Loading…
Cancel
Save