Customizable umask
Originally by older@ at https://github.com/nirgal/EyeFiServer/commit/17fbe29c1a8b4a4632b42d4ca6e1b17c3138e5e5
Hi,
Would that be possible to make umask for creation of directories configurable? I'm using eyefiserver debian package and it creates directories with 644 permissions, so even if I add myself to www-data group I cannot modify/delete image files without being root. I've fixed it locally by adding os.umask(002) call to main(), but it would be even better to have this setting in the configuration file.
What about creating the directory with the same permissions than its container?
I mean if ~/eyefi/ is 664, then ~/eyefi/2015/ should be 664 too?
Another alternative would be to run as your user (change in /etc/default/eyefiserver) and create a link or whatever so that apache can show the pictures?