I have recently get to set up motion with my RPi but I have a problem which is simple one one hand, but, on the other, can’t find any step-by-step instructions to remedy it.
Although I have successfully set up motion and works, after I've made all the necessary tweaks to run it in daemon (edited etc/default/motion & etc/motion/motion.conf), I still can’t get it to start in daemon mode. That said, with every restart of the Pi. I have to manually start the script by “sudo service motion start” or "sudo motion". I know it is an issue with permissions that motion needs to start in daemon but as a complete newbie in the PiWorld, I would appreciate if anyone could guide me through to the 2-3 necessary commands to fix it.
chown
orchmod
if you usesudo
to runmotion
. This is good because people won't be able to delete the motion files without a sudo user password. Also, I would not recommend using777
because then, anyone can delete the motion files. – mchid Sep 25 '19 at 05:26