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

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • 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
User avatar
Norbertus
Newbie
Newbie
Posts: 33
Joined: January 21st, 2011, 2:11 pm

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

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post by shypike »

The "permissions" setting is also available in Config->General.
User avatar
Norbertus
Newbie
Newbie
Posts: 33
Joined: January 21st, 2011, 2:11 pm

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

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post by shypike »

Ok, I'll check that.
Post Reply