Page 1 of 1

Incomplete Downloads folder permissions / Docker image Linuxserver

Posted: April 11th, 2020, 5:38 am
by joao
Hi there,

I am using SABnzbd through the Docker image from Linuxserver.
I have my Shared folder with Incomplete Downloads and Downloads folder where I set permissions for certain users. In this case, users are unable to see the Incomplete Downloads folder.
When I look at the settings in SABnzbd, I can only set the permissions for the Completed downloads folder. Not for the incompleted.

When I start SABnzbd, the permissions for the Downloading folder are reset and everyone is able to see this folder.

I am not sure if this is a Docker image config from Linuxserver or a SABnzbd.
if this is a SABnzbd config, can we please have the option to not change any permissions on the Incomplete Downloads folder?

Thanks.

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Posted: April 14th, 2020, 2:16 pm
by safihre
In Config > Folders, change the Folder Permissions to be empty!

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Posted: April 15th, 2020, 1:50 am
by joao
Hi @Safihre,

It is already empty.Permissions for completed downloads = Empty.
It only happens with the incomplete-downloads folder. The complete-downloads folder has the correct permissions and is not changing when starting SABnzbd.

Cheers,

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Posted: April 17th, 2020, 8:05 am
by safihre
Ooh, well, so what? :P
Nobody else but SABnzbd should be in that folder.
Indeed this is not a setting you can change, on startup we always force set these settings such that SABnzbd can 100% sure access it.

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Posted: April 17th, 2020, 8:14 am
by joao
safihre wrote: April 17th, 2020, 8:05 am Ooh, well, so what? :P
Nobody else but SABnzbd should be in that folder.
Indeed this is not a setting you can change, on startup we always force set these settings such that SABnzbd can 100% sure access it.
I don't think you understand the point.
People running Synology usually have multiple users. In this case, the incomplete-downloads folder is giving everyone access, which shouldn't,
Specially if you choose a different UID/GUID when setting up the container.

Perhaps an idea to add this option in the settings also? Meaning, force is to everyone but have a setting to overwrite the forcing?

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Posted: April 17th, 2020, 8:48 am
by safihre
You could then maybe use the Directory Permissions to limit it to SABnzbd-user only with something like 705?

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Posted: April 17th, 2020, 9:34 am
by joao
safihre wrote: April 17th, 2020, 8:48 am You could then maybe use the Directory Permissions to limit it to SABnzbd-user only with something like 705?
That is indeed the workaround I did.
Anyway, thanks for checking, was hoping that maybe there could be a setting where you can state that the incomplete-downloads folder will not change permissions.

Cheers,

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Posted: April 19th, 2020, 10:17 am
by safihre
Sorry! :/

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Posted: December 23rd, 2020, 5:15 am
by joao
Adding some additional information here.
The issue is still happening and this is happening outside of the docker container creation. Meaning, SABnzbd is applying permissions to folders to ensure access. However, in Docker, access is already available by mounting volumes.

Code: Select all

joao@NAS:/volume2/docker/Compose/Production$ ls -ld "/volume1/Shared/Downloading/"
drwxr-xr-x 1 joao administrators 0 Dec 23 10:51 /volume1/Shared/Downloading/
joao@NAS:/volume2/docker/Compose/Production$ ls -ld "/volume1/Shared/Downloads/Unsorted/"
drwxr-xr-x 1 joao administrators 0 Dec 23 10:32 /volume1/Shared/Downloads/Unsorted/
As you can see above, both folder have been assigned 755 permissions while the original permission was:
Image

Other download clients aren't doing this. I checked qBittorrent, Deluge, Transmission. All the permission stay intact.

I see there is an option to add different permissions to the downloaded folder. However, would it be possible to also add an option to not overwrite any downloaded / incomplete folder permissions?

Thanks.

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Posted: December 26th, 2020, 6:00 am
by safihre
Yes, just leave the option empty.

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Posted: January 23rd, 2021, 1:32 pm
by joao
safihre wrote: December 26th, 2020, 6:00 am Yes, just leave the option empty.
Thank you for your response.
However, I am still going to ask you if it is possible to add an addition to the Folder config.
The "Permissions for completed downloads" field is only valid for Completed downloads; not the Incomplete folder.
The Incomplete folder permissions are overwritten (755) by SABnzbd on every start (I have confirmed this in Synology).

My question is now. Can you add a similar field to the incomplete folder part also? It will act the same as the completed folder permissions. With this, SABnzbd isn't overwritting any permissions.
Leaving this field empty will not change any permissions on the folder and filling in 755 or 777 will change the permissions.

This addition would be great to keep the Synology permissions structured. Especially if you are sharing folders and with the 755 permissions everyone is able to see it.

Thanks.