What are the correct permissions for Sab on Synology?
Posted: November 19th, 2016, 5:45 am
G'morning
(Christmas is approaching: donation time again for beer for you Sab devs ).
I have a problem (well, many, but only one to post here ):
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: sabnzbd101SABnzbd 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,
(Christmas is approaching: donation time again for beer for you Sab devs ).
I have a problem (well, many, but only one to post here ):
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: sabnzbd101SABnzbd 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,