-
Notifications
You must be signed in to change notification settings - Fork 373
Open
Description
This command in the sudoers file does not appear to be correct anymore.
I recently rebuilt my octopi since my old one was an out of date debian base. The new one is Raspbian 12, and when updating plugins in octoprint, it fails to restart. I tracked it to sudo prompting for password. It seems that octoprint now uses systemctl restart octoprint instead of some variant of /user/sbin/service. Once I changed my sudoers to allow my octoprint user to run systemctl restart octoprint without a password, octoprint was able to restart itself again.
OctoPi/src/modules/octopi/start_chroot_script
Line 211 in 0d4cd57
| echo "${BASE_USER} ALL=NOPASSWD: /usr/sbin/service" > /etc/sudoers.d/octoprint-service |
my new file is:
araemo ALL=NOPASSWD: /usr/bin/systemctl restart octoprint
Metadata
Metadata
Assignees
Labels
No labels