guysoft / OctoPi

Scripts to build OctoPi, a Raspberry PI distro for controlling 3D printers over the web
GNU General Public License v3.0
2.49k stars 369 forks source link

Wrong Path in Sudoers File #387

Closed Sunoo closed 7 years ago

Sunoo commented 7 years ago

In OctoPi, the sudoers file /etc/sudoers.d/octoprint-service has the wrong path to the 'service' command. It lists it as /sbin/service, but the correct path is /usr/sbin/service.

guysoft commented 7 years ago

@foosel Looks like he is right:

root@octopi:/home/pi# which service
/usr/sbin/service

. Its added here: https://github.com/guysoft/OctoPi/blob/devel/src/modules/octopi/start_chroot_script#L136

Fixing

foosel commented 7 years ago

I know, I already stated that in #345, but it doesn't matter as long as OctoPi sticks to that "let's just never ask a password from the user for sudo anyway" approach that Raspbian ships with by default.

guysoft commented 7 years ago

Oh hell, your solution is better. I think we can try it in devel after CustomPiOS merge becomes stable