Page 1 of 1

TIP: Permissions, permissions, permissions! [0.7.x]

Posted: April 21st, 2012, 10:44 am
by Norbertus
The following is for Mac OS X and Linux/Unix users of the current version [0.7.0Beta3]
Tested on Mac OS X with SABnzbd version [0.7.0Beta3], with logging on 'Debug'
The system's chmod command has various options and return values that can be used easily within shell scripting. When using other programs to change file permissions, the program itself may have to be run as superuser, or it may need such permissions during some file handling processes, especially when dealing with volumes, or directories with special (mounting) options. This can be ignored when permissions are only inherited.

So to prevent permission errors the best option to use is to give the DOWNLOAD directory permissions 0777 (all access to all) and to give the destination (movie, etc.) directory 0775 (only rx for others) permissions. To make sure that SABnzbd does not change these permissions, you'll have to manually edit the sabnzbd.ini file and look for the line

Code: Select all

permissions = 0775
(the value may differ)

and change the value to ""

Code: Select all

permissions = ""
then just restart SABnzbd and no more permission errors should happen.

O0

Re: TIP: Permissions, permissions, permissions! [0.7.x]

Posted: April 21st, 2012, 1:09 pm
by shypike
The "permissions" setting is also available in Config->General.

Re: TIP: Permissions, permissions, permissions! [0.7.x]

Posted: April 21st, 2012, 1:14 pm
by Norbertus
When changing the permissions to "" in the general settings, the result in the sabnzbd.ini file did not change, hence the manual edit.

Re: TIP: Permissions, permissions, permissions! [0.7.x]

Posted: April 21st, 2012, 3:10 pm
by shypike
Ok, I'll check that.