I have a Python script that moves files from a folder on my pi to a mounted network drive folder, linked to a Box account.
The script seems to intermittently stop moving the files, and on further inspection, I've noticed the directory permissions being changed from 0777 to 0755, so no wonder only user PI can write files if it's 0755.
1) The script is being called buy user
motion, so does it have
motions permissions when moving files between directories?
2) Can this directory's permissions change by them self, if so how?
3) would adding
sudo to the front of the
mv command in the script patch this problem?
4) is it a more elegant solution to make user
motion the owner of the script and directories?
5) Could accessing this directory from another computer, via the box site, in any way change its permissions?
Your help and advise it always welcome,