321liftoff wrote: ↑Thu Jun 07, 2018 2:11 pm
demonrik wrote: ↑Wed Jun 06, 2018 10:34 am
I'll take a look later and see if I can spot something specific .
Did you just chown the folder, or do a '-R' to ensure that not only do you give access, but changes the internals of the folder.
I don't think a -R flag will help. Keep in mind, if the HDHomerunDVR directory is in /volume1/, everything works. When I move it within the Recordings shared folder (which I've set 777 permissions, opening it wide open) then it won't work. I think I'm missing something else.
Sorry for slowness on this one.
I wanted to do some research as I found some stuff out..
Basically I think the issue is down to some changes Synology has made to the filesystem behavior in it's linux.
You will notice that if you ssh to the box and list the shares in /volume1/ that those that are created by the 'create share' tool all have a '+' at the end of the permissions. e.g.:
Code: Select all
dr-xr-xr-x+ 4 root root 4096 Nov 24 2017 video
But if I create a folder then it doesn't have the '+', e.g.
Code: Select all
drwxr-xr-x 3 http http 4096 Mar 3 14:38 HDHomeRunDVR
Thus I suspect that there is somewhere else that synology is setting up additional permissions outside the + which truly govern what the permissions are for the folder. I was able to finally add the http access through the following method
1. Go to the 'Shared Folder' tool in your Control Panel
2. Select the shared folder you wish to use for the DVR
3. Make sure 'Restrict access to administrators only' is not selected/ticked.
4. Hit 'Edit' to edit it's permissions
5. Select the 'Permissions' Tab
6. Where you see 'Local users' select the drop down to 'Local groups'
7. Select the Check Mark for 'Read/Write' access for the 'http' group
8. Select OK
After doing this I was successfully able to write files as the http user in the folder.
Unfortunately, my research didn't find a way for me to automate this.. So for now you have to manually do above. But once you do it once then it's good forever
FWIW - I did check and you can add an existing folder (e.g. HDHomeRunDVR) as a share. Just select create, set the name to the same - ensure the restrict access to administrators only is not selected.. and it adds the share.. but you can still manage permissions perfectly yourself.