Sonarr Synology User

Hello,

When using Sonarr on Synology the program uses it’s own user (nzbdrone) to create folders/files and access the Synology file sharing system.

This can cause problems as that user then has exclusive ownership of those files/folders.

Is there a way we can change the user “nzbdrone” that Sonarr uses, ie. make Sonarr use another existing user?

Thanks

It never has exclusive rights. Just give other users or groups permission on the folder through the dsm control panel.

also if you want give sonarr acces to a file/folder, use the sc-media group. it contains the nzbdrone user.

Unfortunately the nzbdrone user has given itself exclusive access to the folders it creates. The only other user that can write to the folders that nzbdrone creates are the user/s in the admin group.

I have tried adding a new user to the sc-media group, however, the nzbdrone user is still the only one who can write/modify in the folders it creates (except admin).

I will post the permissions screen if this doesn’t make sense / or you don’t believe me

As you probably where already doing stuff in the *nix layer instead of DSM, first check permissions there.

Just do a “ls -lt” in the *nix layer.

SeriesFolders should be created similar to:
drwxrwx— 2 nzbdrone users 4096 Mar 3 22:30 DC’s Legends of Tomorrow

Read, write, execute for nzbdrone
Read, write, execute for everyone in the group users
No permission for others.

But there are 2 security layers, so in DSM, you also need to set permissions, which overrides the *nix permissions.

On the properties of the same folder you can see something like…

The user “plex” got permissions, by giving it permissions on the Shared Folder in which my series are stored.

If you’re stuck, try 2 things:

  1. Check if you haven’t turned on “set permissions” under “media management” in Sonarr
  2. Create a new series Shared Folder first from the DSM layer, set all permissions, and then point Sonarr to that directory.

Hi Mirx_NL,

I have never been great with unix/linux but can sometimes work it out. However, in this instance I haven’t touched anything like that. I have only used the DSM to manage the shares/permissions.

At the moment when a folder has been created by the nzbdrone user these are the permissions I have noticed:

When the normal folders have these permissions:

So this appears to be causing the nzbdrone user to be the only one with full access to the folders/files (except for the admin user), no other user can modify/delete/create files & folders in any folder created by the nzbdrone user.

Note; all other existing folders in the TV directory work fine, it is only the new ones that Sonarr (nzbdrone) have created since installing are having problems.

In regards to 1) you mentioned. It has been turned off as you can see from the screenshot, however, maybe I should try turning it on?

What do you think? Thanks for your posts

If you want a generic permission, just set the check-marks on the top Sonarr folder, and also check the “Apply to this folder, sub-folders and files”.

That will set it to all the current subfolders, and should also set new folders to that setting if I remember correctly.

Otherwise, just give the group users read/write through the control panel.

P.s. I tend to use “Create new Shared Folder” for top level stuff instead of “Create Folder”.

It works fine if I set the folders to the correct owner, the problem is that every time Sonarr (nzbdrone) creates a new folder then it resets itself as the owner and subsequently the other users don’t have permission to modify within that folder.

It is too annoying to change ownership of the folders every time Sonarr creates a new folder…

There is only two real solutions that I can see:

  1. Sonarr (nzbdrone) “user” does not create folders using 0644 so that nzbdrone doesn’t have exclusive ownership
  2. Sonarr doesn’t create the folders using the nzbdrone user

Because it appears that in Synology I can’t create a group that has more permission than the nzbdrone user (other than admin group)

So far it appears to be working. For those out there that have a similar problem, this is what I have done:

In DSM; disable the guest account and added an account specifically to access the Synology sharing system via Windows network

Control Panel -> Shared Folder -> Right click on the share -> Action -> Convert to Windows ACL

Initially I changed the permissions of my user that needs access via the Windows share:

Control Panel -> Shared Folder -> Right click on the share -> Edit -> Permissions -> Set to Read/Write (or Custom) and add everything except “Change Permissions”

Initially I needed to change to custom as above and then when I changed back to normal read/write it just worked. So it is difficult to tell exactly what allowed the permissions.

This is also a tutorial that Synology support suggested with some pictures:

https://www.synology.com/en-global/knowledgebase/DSM/tutorial/File_Sharing/How_to_manage_ACL_settings_on_your_Synology_NAS

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