dgrant / eyefiserver2

A standalone Eye-Fi server in Python, for Linux
GNU General Public License v3.0
140 stars 40 forks source link

Permission of folders #27

Open riker09 opened 8 years ago

riker09 commented 8 years ago

When new folders need to be created, the ownership is of the user running the server, not what is entered as uid and gid in the config file.

Here's the config from /etc/eyefiserver.conf:

upload_dir:/path/to/pictures/%%Y/%%m/%%d

I wanted my images to be organized in subfolders, as you can see. But only the last part (%%d) has the right ownership (65534 in my case). %%Y and %%m both have 0, the user under which the server is running.

I'm using a QNAP SS-439 if that's of any relevance.