Page 1 of 1

Permissions Help Please

Posted: August 6th, 2011, 2:48 am
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

Re: Permissions Help Please

Posted: August 6th, 2011, 2:55 am
by shypike
Use the item Config->Switches->Permissions to set the proper permissions.

Re: Permissions Help Please

Posted: August 6th, 2011, 3:01 am
by pavloh
I dont have permissions in there??

Re: Permissions Help Please

Posted: August 6th, 2011, 3:06 am
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

Re: Permissions Help Please

Posted: August 6th, 2011, 3:13 am
by pavloh
I mean there is no permission setting under switches under folders however I have it set to 0777

Re: Permissions Help Please

Posted: August 6th, 2011, 3:36 am
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?

Re: Permissions Help Please

Posted: August 6th, 2011, 4:00 am
by pavloh
basically the directory permissions are fine, but the underlying files eg .avi files etc are not inheriting the same permission set..?

Re: Permissions Help Please

Posted: August 8th, 2011, 1:39 am
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.

Re: Permissions Help Please

Posted: August 8th, 2011, 1:51 am
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.

Re: Permissions Help Please

Posted: August 8th, 2011, 2:17 am
by pavloh
once the files are moved they still retain the private settings... Even with 0777 set in the folder permissions.

Re: Permissions Help Please

Posted: August 8th, 2011, 4:21 am
by shypike
Which program does the moving?

Re: Permissions Help Please

Posted: August 8th, 2011, 4:26 am
by pavloh
couchpotato

Re: Permissions Help Please

Posted: August 8th, 2011, 5:19 am
by shypike
When are the permissions wrong, before or after CouchPotato does it work?

Re: Permissions Help Please

Posted: August 8th, 2011, 5:13 pm
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?

Re: Permissions Help Please

Posted: August 9th, 2011, 3:18 am
by shypike
You'd have to ask CouchPotato's author.