Disabling 'Set premissions' not working for media files

Sonarr: 2.0.0.5163
Mono: 4.2.3

Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-127-generic x86_64)

I have an issue with file permissions on my Sonarr setup.

I have an ZFS backed NFS area for my media, exposed with Solaris clone OmniOS CE. This system provides extended ACL and I’m mounting NFS the shares on the Ubuntu server for Sonarr to access. So far so good, this works fine, Sonarr does it work, media is updated regularily and all is fine and the shares is accessed over NFS from misc Kodi installations.

Now to the problem:
When one changes plain unix permissions from Ubuntu on files on the NFS shares, the extended ACL breaks. Its great that Sonarr supports disabling of setting permissions altogether but I cant get this to work. In some cases this causes problems for Kodi and other clients when accessing the media files, metadata and subtitle files.

I have disabled the ‘set permission’ option and then the metadata files look ok but the media files still get their permissions changed. If I enable permissions both media and meta look the same. I thought at first it was inherited when the files where copied from Ubuntu local disks (SabNZB output) but the permissions does not match the outpout permissions specified there (0755). It does however match what is set for Sonarr but explicitly disabled (0644).

Heres what a file set looks like on the NFS share with setting permissions disabled in Sonarr (I’d expect the MKV-file to look like the NFO-file):

-rw-r--r--+  1 xxx     xxx      5400229463 mai  1  2017 xxx.xxx.S03E08.Episode.8.WEBDL-1080p.visum.mkv
              user:root:rwxpdDaARWcCos:------I:allow
                 owner@:rw-p--aARWcCos:-------:allow
                 group@:r-----a-R-c--s:-------:allow
              everyone@:r-----a-R-c--s:-------:allow
-rwxrwxrwx+  1 xxx      xxx         1327 mai 23 22:11 xxx.xxx.S03E08.Episode.8.WEBDL-1080p.visum.nfo
              user:root:rwxpdDaARWcCos:------I:allow
              everyone@:rwxpdDaARWc--s:------I:allow

Debug log with permissions disabled in Sonarr: https://pastebin.com/1zDG5111

And with it enabled they both look the same:

-rw-r--r--+  1 xxx     xxx     5400229463 mai  1  2017 xxx.xxx.S03E08.Episode.8.WEBDL-1080p.visum.mkv
              user:root:rwxpdDaARWcCos:------I:allow
                 owner@:rw-p--aARWcCos:-------:allow
                 group@:r-----a-R-c--s:-------:allow
              everyone@:r-----a-R-c--s:-------:allow
-rw-r--r--+  1 xxx     xxx     1327 mai 24 09:54 xxx.xxx.S03E08.Episode.8.WEBDL-1080p.visum.nfo
              user:root:rwxpdDaARWcCos:------I:allow
                 owner@:rw-p--aARWcCos:-------:allow
                 group@:r-----a-R-c--s:-------:allow
              everyone@:r-----a-R-c--s:-------:allow

Debug log with permissions enabled in Sonarr: https://pastebin.com/89fPMWjz

This does seem to work for folders though, it appears that it only applies to media files handled thru media management/import. Any clues as to what goes wrong?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.