mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-29 18:13:10 +01:00
Allow octoprint user to perform system functions (#3444)
This commit is contained in:
parent
bfce73c0ed
commit
b567bd848b
@ -37,6 +37,7 @@ msg_info "Creating user octoprint"
|
|||||||
useradd -m -s /bin/bash -p $(openssl passwd -1 octoprint) octoprint
|
useradd -m -s /bin/bash -p $(openssl passwd -1 octoprint) octoprint
|
||||||
usermod -aG sudo,tty,dialout octoprint
|
usermod -aG sudo,tty,dialout octoprint
|
||||||
chown -R octoprint:octoprint /opt
|
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_ok "Created user octoprint"
|
||||||
|
|
||||||
msg_info "Installing OctoPrint"
|
msg_info "Installing OctoPrint"
|
||||||
|
Loading…
Reference in New Issue
Block a user