Incomplete Downloads folder permissions / Docker image Linuxserver

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
joao

Incomplete Downloads folder permissions / Docker image Linuxserver

Post 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.
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Post by safihre »

In Config > Folders, change the Folder Permissions to be empty!
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
joao

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Post 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,
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Post 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.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
joao

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Post 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?
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Post by safihre »

You could then maybe use the Directory Permissions to limit it to SABnzbd-user only with something like 705?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
joao

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Post 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,
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Post by safihre »

Sorry! :/
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
joao

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Post 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.
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Post by safihre »

Yes, just leave the option empty.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
joao

Re: Incomplete Downloads folder permissions / Docker image Linuxserver

Post 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.
Post Reply