Page 1 of 1

Where to set g+w permissions for files?

Posted: Tue Aug 06, 2013 8:25 am
by bs27975
Where do I go to set g+w permissions on the files, e.g. events?

i.e. not just 'chmod -R g+w zoneminder', but so that they get created that way in the first place.

I wing backups all over my network and have lost some events. When I go to restore them I get blocked for no permissions. I can work around this instance by the chmod above, but where do I set so they get created that way in the first place, for next time. (I've added myself to the www-data group.)

[Yes, I get that the restored files may not be in the events database, but I'd like to keep the files together. Not infrequently it's easier to whip through the images via konqueror with preview turned on, and just copying the files back will still permit that.]

Re: Where to set g+w permissions for files?

Posted: Tue Aug 06, 2013 8:41 am
by bs27975
Found http://stackoverflow.com/questions/4284 ... pache-user

Added 'umask 006' to /etc/apache2/envvars

If that's inappropriate (a bad idea), or there's a more refined method to affect only zoneminder files, I'd appreciate a comment here.