image files creation permissions +W group for cloud sync service
Posted: Tue May 17, 2016 8:44 am
hi guys!
I just managed to get ZoneMinder 1.29 working in Ubuntu 16.04.
I had to actually switch from Mint 17.3 as I couldn't solve some strange socket errors but hey, it does works now!
I use a cloud file sync service (Mega) to make sure I get the evidence in case the bad guy steals or destroys my server too!
The file sync service runs as my user (as they all do).
ZoneMinder runs as www-data.
My user is in group www-data too.
Normally when I delete files and folder from the cloud, they are also deleted from the server. And vice-versa.
But I can't delete the files in /var/cache/zoneminder/events as they are marked R for group but I not W.
I would like to modify the images and folders creation permissions so they have +W for groups.
I tried as seen on various older forums adding 'umask 002' or similar to various Apache config files but to no avail. Permissions are always:
- files www-data:www-data 644 (-rw-r--r--)
- folders www-data:www-data 755 (drwxr-xr-x)
How to get my user or group to have write permissions to all these files?
Cheers!
I just managed to get ZoneMinder 1.29 working in Ubuntu 16.04.
I had to actually switch from Mint 17.3 as I couldn't solve some strange socket errors but hey, it does works now!
I use a cloud file sync service (Mega) to make sure I get the evidence in case the bad guy steals or destroys my server too!
The file sync service runs as my user (as they all do).
ZoneMinder runs as www-data.
My user is in group www-data too.
Normally when I delete files and folder from the cloud, they are also deleted from the server. And vice-versa.
But I can't delete the files in /var/cache/zoneminder/events as they are marked R for group but I not W.
I would like to modify the images and folders creation permissions so they have +W for groups.
I tried as seen on various older forums adding 'umask 002' or similar to various Apache config files but to no avail. Permissions are always:
- files www-data:www-data 644 (-rw-r--r--)
- folders www-data:www-data 755 (drwxr-xr-x)
How to get my user or group to have write permissions to all these files?
Cheers!