What are the correct permissions for Sab on Synology?

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
wilG
Newbie
Newbie
Posts: 8
Joined: December 25th, 2012, 11:14 am

What are the correct permissions for Sab on Synology?

Post by wilG »

G'morning ;D

(Christmas is approaching: donation time again for beer for you Sab devs :-* ).

I have a problem (well, many, but only one to post here :D ):

1. Sab runs on Synology DSM6.
2. DSM was upgraded from 5.2 to 6.0 to make sure Sab would keep on running (given reports about how Sab wouldn't work on DSM6).
3. Everything worked perfectly.
4. There was, however, an access rights problem: on the CLI, via SSH, the deny permissions on the folder sabnzbd wouldn't work. Normal user who was denied access to that folder indeed couldn't access it via DSM GUI/FileStation, however: *could simply cd to sabnzbd in the CLI/SSH*.
5. Synology told me to 'convert to ACL', a function you can find in the menu bar of Control Panel/Shared Folders in DSM.
6. I did, and indeed, now the user gets an 'access denied' in the CLI/SSH. This is *good*.
7. However, *bad* is: Sab will not start downloading anymore. Feed it a *.nzb, Sab will ERROR with 'Cannot create directory /volume1/sabnzbd/incomplete'.
8. Which to me as a noob is strange, since that directory already exists, and has existed for years without problems.
9. I tried, as the user who also feeds *.nzb to Sab, to delete the /incomplete/ folder and recreate it, but this also doesn't do anything.
10. The 'funny' part is: only two weeks ago, so before converting to ACL, I tried to create a new download directory /volume1/hans/, simply to allow hans access to his own downloads: then I got the same error.
11. The volume is formatted as BTRFS, I have no clue if this is relevant or not.

12. /etc/passwd: sabnzbd:x:101:100:SABnzbd User:/usr/local/sabnzbd/var:/bin/sh
(12a: why can't I see this user in the DSM GUI in 'users'?)

13. Current folder permissions:

drwxrwxrwx+ 1 root root 102 Nov 19 11:42 .
drwxr-xr-x 1 root root 594 Nov 17 16:06 ..
drwx------ 1 Jos users 0 Sep 1 20:35 backups
-rwxrwxrwx+ 1 admin users 0 Nov 19 11:42 100.txt
drwxrwx--- 1 Jos users 552 Nov 9 19:54 complete
drwxrwxrwx+ 1 root root 8 Nov 17 16:06 @eaDir
drwxrwxrwx+ 1 Jos users 0 Nov 18 22:48 incomplete
drwxrwxrwx 1 admin administrators 0 Dec 16 2013 logs
drwxrwxrwx+ 1 root root 22 Nov 19 00:09 #recycle



Does anybody know a way out of this problem? Perhaps I need, some way or the other, to reset some folder permissions, or user permissions, or something?


Thank you very much in advance for any help :-*

Bye,
I did donate a beer to the good cause :-)
Silluk
Newbie
Newbie
Posts: 1
Joined: November 19th, 2016, 9:41 am

Re: What are the correct permissions for Sab on Synology?

Post by Silluk »

Same issue for me, would appreciate a response
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: What are the correct permissions for Sab on Synology?

Post by safihre »

I don't know exactly how things work on the Synology, but from SynoCommunity I know that the whole permissions issue is exactly what's keeping them from releasing new packages for DSM 6.
Besides 777 everything and go from there, I am not sure what it has to be..
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
wilG
Newbie
Newbie
Posts: 8
Joined: December 25th, 2012, 11:14 am

Re: What are the correct permissions for Sab on Synology?

Post by wilG »

safihre wrote:I don't know exactly how things work on the Synology, but from SynoCommunity I know that the whole permissions issue is exactly what's keeping them from releasing new packages for DSM 6.
Besides 777 everything and go from there, I am not sure what it has to be..
Thanks :)

"And now, for the stuffing": I fixed it myself (whoo-aa!) ;D

Permissions for the folder were set for users. However, they also need to be set for *groups* after this 'ACL conversion'. The other gods, indeed from Synocommunity, created user groups sc-media/-download/-http in Synology during install of 'a' (I don't know which) package.

I allowed all three of them access, restarted Sab...: et voila, it's downloading again.
I did donate a beer to the good cause :-)
User avatar
safihre
Administrator
Administrator
Posts: 5521
Joined: April 30th, 2015, 7:35 am
Contact:

Re: What are the correct permissions for Sab on Synology?

Post by safihre »

Good to hear!
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply