Permissions Help Please

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
pavloh
Newbie
Newbie
Posts: 9
Joined: August 6th, 2011, 2:39 am

Permissions Help Please

Post by pavloh »

Hi,

Thanks for this awesome app, really loving this in combination with CouchPotato and Sickbeard running on my Synology DS1511+. All working well except for one small issue,

When i download files the file permissions are not set correctly. For example

Download Dir
\volume1\sabnzbd\downloads

Moved Directory
\volume1\Media\New Movies\

Directory permissions are set to 777. Not sure if this also applies to Directories in categories? As my movie category has a movie folder so complete\movies...

Once a file finished downloading the Folder permissions are fine, they are full control to everyone which i am happy with in those directories. However the file permissions are only Read+Write to the owner which is Blank. I dont know what else to do, to get the actual files inheriting the permission also. Even while the file is downloading the folder permissions are fine but the pieces of the download only show the Owner permissions.

Any help would be much appreciated. Also I have set the umask settings on my NAS for the root and system profiles as 002. I can also confirm SABNZBD is running under ROOT using a login script.

All downloading using Sickbeard dont have this issue, the post processing for this is working great and the file permissions are set accordingly. CouchPotato downloads seem to be the main issue, but the permissions are not correct on the file even prior to CouchPotato moving the file/

Thanks
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Permissions Help Please

Post by shypike »

Use the item Config->Switches->Permissions to set the proper permissions.
pavloh
Newbie
Newbie
Posts: 9
Joined: August 6th, 2011, 2:39 am

Re: Permissions Help Please

Post by pavloh »

I dont have permissions in there??
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Permissions Help Please

Post by shypike »

You should fill in the required octal number for permissions, otherwise you'll get defaults.
You would need 0777

http://wiki.sabnzbd.org/unix-permissions
pavloh
Newbie
Newbie
Posts: 9
Joined: August 6th, 2011, 2:39 am

Re: Permissions Help Please

Post by pavloh »

I mean there is no permission setting under switches under folders however I have it set to 0777
pavloh
Newbie
Newbie
Posts: 9
Joined: August 6th, 2011, 2:39 am

Re: Permissions Help Please

Post by pavloh »

just tried another file, downloads and moves the file fine, the .avi file only has owner permissions set while the .srt etc all have full control, any ideas?
pavloh
Newbie
Newbie
Posts: 9
Joined: August 6th, 2011, 2:39 am

Re: Permissions Help Please

Post by pavloh »

basically the directory permissions are fine, but the underlying files eg .avi files etc are not inheriting the same permission set..?
pavloh
Newbie
Newbie
Posts: 9
Joined: August 6th, 2011, 2:39 am

Re: Permissions Help Please

Post by pavloh »

Would be great if I could get a post-processing script that looks at the completed downloads, performs a chmod to 777 on the files, and then move’s it to its completed directory.

If anyone has something like this or is able to show me a sample script that would be great. My scripting knowledge is hopeless.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Permissions Help Please

Post by shypike »

SABnzbd already does a permissions run at the end of post processing.

Reading your post again, I'm not really sure what you mean.
At one time you talk about the downloaded files, at other times about
post-processed files. Those are not the same.
The downloaded files always have "private" settings.
pavloh
Newbie
Newbie
Posts: 9
Joined: August 6th, 2011, 2:39 am

Re: Permissions Help Please

Post by pavloh »

once the files are moved they still retain the private settings... Even with 0777 set in the folder permissions.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Permissions Help Please

Post by shypike »

Which program does the moving?
pavloh
Newbie
Newbie
Posts: 9
Joined: August 6th, 2011, 2:39 am

Re: Permissions Help Please

Post by pavloh »

couchpotato
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Permissions Help Please

Post by shypike »

When are the permissions wrong, before or after CouchPotato does it work?
pavloh
Newbie
Newbie
Posts: 9
Joined: August 6th, 2011, 2:39 am

Re: Permissions Help Please

Post by pavloh »

thanks for bringing this to my attention. I turned off the renaming/moving feature in couch potato. Let SABNZBD download the same file again and the permissions are ok, its applying a 002 Umask setting to them.

Any ideas why couch potato would be screwing the setting up?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Permissions Help Please

Post by shypike »

You'd have to ask CouchPotato's author.
Post Reply