Problem with changed permissions after download

Get help, report and discuss bugs.
Post Reply
Panja
Posts: 119
Joined: 11 Aug 2015, 07:42

Problem with changed permissions after download

Post by Panja » 27 Sep 2017, 07:17

I have the following setup:
Synology DS415+ running the latest Docker package.
Installed NZBget through Docker, image came from Linuxserver.io
Created a shared folder "downloads" and linked it in the Docker container.
Shared folder can be accessed (read+write) by "admin", "joe" and "john".

Set the admin account (for testing purposes) with docker parameters (PUID & PGID).
Set the correct paths in NZBget.

When downloading files the permissions are changed on the downloaded files.

For instance I download ubuntu.
The download completes in \\downloads\complete\ubuntu\ubuntu.iso

The folder ubuntu has the correct permissions (read+write for admin, joe and john) but the file in this folder "ubuntu.iso" has the permissions screwed up. The "everyone" and "users" group have now read permissions and Joe and John are not in the list anymore and can't delete the file (they can read it because they are in the group everyone and users).

The problem occurs on NZBget 19.1 and I just tried 20.0-r2108.

Any clue what can be wrong?

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Problem with changed permissions after download

Post by hugbug » 27 Sep 2017, 07:41

The only thing NZBGet does regarding permission is setting Umask via option Umask (if active but by default it's not).

Try creating folder and files in nzbget container from terminal and check what happens with permissions.
Joe and John are not in the list anymore
What list do you mean? On Linux there is only permission mask "rwxrwxrwx". AFAIK files cannot have per user permissions (although probably possible in SELinux).
So I guess you mean Samba shares permissions which programs such as NZBGet have no deal with.

Panja
Posts: 119
Joined: 11 Aug 2015, 07:42

Re: Problem with changed permissions after download

Post by Panja » 27 Sep 2017, 08:06

When creating directories within the docker container (through terminal) the permissions are ok and not changed.
I mean the list of users that can access the folder, through Samba yes.

To make it even more vague.
When I download a movie and it is being processed by the VideoSoft script I do not have this problem.
VideoSort moves the movie to the right movie directory and the permissions that are on that movie directory are being preserved.

Panja
Posts: 119
Joined: 11 Aug 2015, 07:42

Re: Problem with changed permissions after download

Post by Panja » 28 Sep 2017, 18:57

Do you have any clue?

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Problem with changed permissions after download

Post by hugbug » 28 Sep 2017, 19:22

Have you checked Umask (see my previous post)?

Panja
Posts: 119
Joined: 11 Aug 2015, 07:42

Re: Problem with changed permissions after download

Post by Panja » 28 Sep 2017, 20:08

Sorry. Yes I did.
It was disabled (1000) but I've tried 000 as well. Did not change anything.

Panja
Posts: 119
Joined: 11 Aug 2015, 07:42

Re: Problem with changed permissions after download

Post by Panja » 01 Oct 2017, 21:18

Any tips maybe?

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Problem with changed permissions after download

Post by hugbug » 04 Oct 2017, 13:00

NZBGet doesn change permissions.
Permissions may be set indirectly via option UMask. If it is set to 1000 then permissions are not changed at all.

There should be no difference if NZBGet creates files/directories or if you create them manually from terminal, provided you do tests in terminal with the same user account NZBGet runs on. Once you tested the permissions from manually created files and directories, try running nzbget from that terminal windows (nzbget -s) and test how files/directories are created.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 51 guests