Permissions on Synology Box

Today Sonarr fetched a tv espisode and sent it to NZBGet to download. It completed it, but afterwards Sonarr didn’t have permission to access the file and move it.

I am running Sonarr on a Synology box and I believe the issue is related to folder/file permissions and the different accounts (admin, user and nzbget). I have two main folders under volume 1 - “downloads” and “NAS”. Under downloads is the default NZBGet folder structure. Under NAS is Book, Movies, TV etc. I have ssh’d to the Synology box and got folder/file permissions for each main folder.

Here is the structure to where NZBGet downloads the the show:

DiskStation> ls
bin           initrd        proc          tmp           volumeUSB1
core_perl     lib           root          usr
dev           lost+found    run           var
etc           mnt           sbin          var.defaults
etc.defaults  perl5         sys           volume1
 
DiskStation> cd volume1
DiskStation> ls -l
drwxr-xr-x    2 root     root          4096 Nov 11  2014 @S2S
drwxr-xr-x    8 root     root          4096 Dec 22 18:29 @appstore
drwx------    2 root     root          4096 Jun 21  2015 @autoupdate
drwxr-xr-x    4 admin    users         4096 Aug  5  2014 @database
-rw-------    1 root     root       2068480 Dec 20  2013 @httpd.core
-rw-------    1 root     root     142229504 Aug 13  2015 @php.core
-rw-------    1 root     root       9572352 Mar  3  2014 @smbd.core
drwxrwxrwx    4 root     root          4096 Nov 11  2014 @spool
drwxrwxrwt    3 root     root          4096 Feb 16 17:36 @tmp
drwxrwxrwx   10 root     root          4096 Jan  9 17:11 NAS
-rw-------    1 root     root          7168 Feb 16 17:49 aquota.group
-rw-------    1 root     root          8192 Feb 16 17:49 aquota.user
drwxrwxrwx    7 root     users         4096 Feb 15 16:27 downloads
 
DiskStation> cd downloads
DiskStation> ls -l
drwxrwxrwx    3 nzbget   users         4096 Aug 29 08:22 dst
drwxrwxrwx    3 nzbget   users         4096 Feb 16 16:35 inter
drwxrwxrwx    2 nzbget   users        12288 Feb 16 16:28 nzb
drwxrwxrwx    2 nzbget   users        20480 Feb 16 16:35 queue
drwxrwxrwx    2 nzbget   users         4096 Feb 16 16:28 tmp
 
DiskStation> cd dst
DiskStation> ls -l
drwxrwxrwx    3 nzbget   users        20480 Feb 16 16:34 TV
 
DiskStation> cd TV/
DiskStation> ls -l
drwxrwxrwx    2 nzbget   users         4096 Feb 16 17:49 The_TV_Show
 
DiskStation> cd The_TV_Show
DiskStation> ls -l
-rw-r--r--    1 nzbget   users    278059967 Feb 15 19:36 the_tv_show.s08e11.mp4
-rw-rw-rw-    1 nzbget   users         4359 Feb 16 16:29 the_tv_show.nfo

and under NAS to the folder where the TV show is stored:

DiskStation> ls
bin           initrd        proc          tmp           volumeUSB1
core_perl     lib           root          usr
dev           lost+found    run           var
etc           mnt           sbin          var.defaults
etc.defaults  perl5         sys           volume1
 
DiskStation> cd volume1
DiskStation> ls -l
drwxr-xr-x    2 root     root          4096 Nov 11  2014 @S2S
drwxr-xr-x    8 root     root          4096 Dec 22 18:29 @appstore
drwx------    2 root     root          4096 Jun 21  2015 @autoupdate
drwxr-xr-x    4 admin    users         4096 Aug  5  2014 @database
-rw-------    1 root     root       2068480 Dec 20  2013 @httpd.core
-rw-------    1 root     root     142229504 Aug 13  2015 @php.core
-rw-------    1 root     root       9572352 Mar  3  2014 @smbd.core
drwxrwxrwx    4 root     root          4096 Nov 11  2014 @spool
drwxrwxrwt    3 root     root          4096 Feb 16 17:36 @tmp
drwxrwxrwx   10 root     root          4096 Jan  9 17:11 NAS
-rw-------    1 root     root          7168 Feb 16 18:04 aquota.group
-rw-------    1 root     root          8192 Feb 16 18:04 aquota.user
drwxrwxrwx    7 root     users         4096 Feb 15 16:27 downloads
 
DiskStation> cd NAS
DiskStation> ls -l
drwxrwxrwx    5 root     root          4096 Jan 31 17:07 #recycle
drwxrwxrwx    2 root     users         4096 Jan  9 17:11 @eaDir
drwxrwxrwx    6 guest    users         4096 Aug 29 13:16 Admin
drwxrwxrwx    3 admin    users       159744 Nov 14  2014 Books
drwxrwxrwx  148 admin    users        12288 Feb 15 18:25 Movies
drwxrwxrwx  313 admin    users        12288 Dec 12 18:23 Music
drwxrwxrwx   22 admin    users         4096 Jan 31 20:29 Programs
drwxrwxrwx   38 admin    users         4096 Feb 15 16:58 TV
-rwxrwxrwx    1 guest    users        16384 Dec 10 20:44 Thumbs.db
 
DiskStation> cd TV
DiskStation> ls -l
drwxrwxrwx    2 root     users         4096 Feb 14  2015 @eaDir
drwxrwxrwx    3 admin    users         4096 Jul  3  2014 Show 1
drwxrwxrwx    4 admin    users         4096 Oct 10  2011 Show 2
drwxrwxrwx    7 admin    users         4096 Jan 20 19:54 Show 3
drwxr-xr-x    3 admin    users         4096 Feb 14 22:06 Show 4
drwxrwxrwx    4 admin    users         4096 Feb 16 18:04 The_TV_Show
-rwxrwxrwx    1 admin    users       225280 Dec 22 18:00 Thumbs.db
 
DiskStation> cd The_TV_Show
DiskStation> ls -l
drwxrwxrwx    3 admin    users         4096 Feb 16 16:22 Season 08
drwxr-xr-x    2 admin    users         4096 Feb 14 23:31 Season 8
-rw-r--r--    1 admin    users            0 Feb 16 18:04 ls
 
DiskStation> cd Season\ 8/
DiskStation> ls -l
-rw-r--r--    1 admin    users    300976571 Feb  8 20:53 the_tv_show.s08e10.mp4
-rw-r--r--    1 admin    users    269669292 Feb 14 22:25 the_tv_show.s08e09.mp4

This is the first time encountering this issue. Any suggestions?

Thanks,
fillalph

Looking as your screenshots, you’re probably making the common permission mistake.

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