Permissions in library

Sonarr version (exact version): 2.0.0.3953
Mono version (if Sonarr is not running on Windows): 4.2.2 (Stable 4.2.2.10/7b87787 Thu Feb 18 22:35:11 UTC 2016)
OS: FreeBSD 10.3
((Debug logs)):
(Make sure debug logging is enabled in settings and post the full log to hastebin/pastebin/dropbox/google drive or something similar, do not post them directly here)
Description of issue: Files brought in from sabnzbd seem to have varying permissions. User ID is obviously correct.

Here’s an example - all auto-fetched by Sonarr/Sabnzbd:

-rw-r--r--  1 plex  staff   944462314 Apr 25 06:25 Last
-rw-r--r--  1 plex  staff   232199504 May  2 05:49 Last
-rw-r--r--  1 plex  staff   274869013 May 16 06:12 Last
-rw-------  1 plex  staff   273447889 May 23 05:57 Last
-rw-------  1 plex  staff   318563094 Jun  6 06:03 Last
-rw-------  1 plex  staff   277730971 Jun 13 05:56 Last
-rw-------  1 plex  staff   848137089 Jun 19 20:40 Last
-rw-------  1 plex  staff   245414753 Jun 27 06:14 Last
-rw-r--r--  1 plex  staff   244519626 Jul 25 05:48 Last
-rw-r--r--  1 plex  staff   224269478 Aug  1 06:08 Last
-rw-r--r--  1 plex  staff   244066907 Aug  8 07:36 Last
-rw-r--r--  1 plex  staff   269219169 Aug 15 06:11 Last
-rw-r--r--  1 plex  staff   990333103 Aug 21 20:42 Last
-rw-r--r--  1 plex  staff   259443038 Sep 26 06:40 Last
-rw-------  1 plex  staff   852131670 Oct  3 08:36 Last
-rw-------  1 plex  staff  1117930669 Oct  9 22:23 Last

My best guess is that the downloaded files have those permissions and when unpacked nothing in the chain of programs doing this work alters them. Everything that is vaguely associated with Sonarr is running under the “plex” user - sonarr, plex, sabnzbd, headphones, couchpotato, etc. which I hoped would eliminate weird issues.

Any ideas? I can always cron a “chmod -R a+r”, but that’s ugly. :slight_smile:

Both sabnzbd and Sonarr have umask settings. You’ll have to check the settings pages of the respective apps. For Sonarr:
Settings -> Enable ‘Advanced Settings’ on the top right -> Media Management -> Permissions -> chmod masks & Set permissiongs toggle. (please read the tooltips!)

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