Page 1 of 1

What are the correct permissions for Sab on Synology?

Posted: November 19th, 2016, 5:45 am
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,

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

Posted: November 19th, 2016, 9:42 am
by Silluk
Same issue for me, would appreciate a response

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

Posted: November 19th, 2016, 10:07 am
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..

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

Posted: November 19th, 2016, 2:31 pm
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.

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

Posted: November 19th, 2016, 3:22 pm
by safihre
Good to hear!