I'm trying to run Motion as a deamon, however whenever I try to write a file, it crashes and I find this in my syslog:
Dec 19 10:52:40 raspberrypi motion: [1] Resizing pre_capture buffer to 1 items
Dec 19 10:53:27 raspberrypi motion: [1] Error opening file /home/pi/Monitor/01-20131219105327-00.jpg with mode w: Permission denied
Dec 19 10:53:27 raspberrypi motion: [1] Can't write picture to file /home/pi/Monitor/01-20131219105327-00.jpg - check access rights to target$
Dec 19 10:53:27 raspberrypi motion: [1] Thread is going to finish due to this fatal error: Permission denied
It was able to write files there when I started it manually. Only since running it as a deamon did it start giving these errors/crash. I've read/google'd countles Motion tutorials and haven't found one that explicitly talks about permissions required to write files to a given directory.
Note, my motion.conf points at:
target_dir /home/pi/Monitor
daemon on
And in /etc/default/motion I've changed
start_motion_daemon=yes
Am I doing something obviously dumb, or what permissions and where do I need to assign?