Page 1 of 1

Issues with SABNZBD

Posted: January 24th, 2016, 7:32 pm
by ZarthDK
Hi,

I am by no means a Linux geek, so i need some help

I installed SABNZBD on my NAS

If i find a NZB file it picks up the file and downloads it.

I have 2 problems (might be connected)

1) Whenever a download is complete, the permissions of the folder is only for the "admin" user and not for my personal user. IS there a way to either get other permissions on the folder (i.e. inherited permissions from parent folder) or at least set permissions to my own username?
2) Whenever im downloading, i cant seem to see the files in the "incomplete" folder - it just pops up finished in my complete folder which ive changed the path for.

Im mapping the linux drive on windows, so it might be a access right issue.

Please help me

Thanks in advance :)

Re: Issues with SABNZBD

Posted: January 25th, 2016, 2:51 am
by shypike
If you run as root, you can set a post-processing script (in the categories section).
Something like this:

Code: Select all

#!/bin/sh
cd "$1"
chown -R YOUR-USER-ID .
chgrp -R YOUR-GROUP-ID .
More info: http://wiki.sabnzbd.org/user-scripts

Re: Issues with SABNZBD

Posted: January 25th, 2016, 11:08 am
by ZarthDK
Hi,

Thanks for the answer.

How do i create the file.. i guess it needs to be .py extension

If i log on to the NAS with Putty - what exactly do i type (dont want to screw anything up ;) )

Do you know why i cant see the files in the incomplete folder? im guessing that it has to do with Windows who doesnt have the necessary rights.

I guess i could try to go to putty and type chgrp -R YOUR-GROUP-ID (suck as administrators) to the whole sabnzbd folder.

does R mean recursive?

Thanks for your help :)

Re: Issues with SABNZBD

Posted: January 26th, 2016, 2:50 am
by shypike
-R is recursive.
If doesn't need the PY extension.
However you should make it executable:
chmod +x name-of-file
and put in in SABnzbd's scripts folder (Config->Folders).

The folders in "incomplete" are not public,
this is determined by the umask of your account.

Re: Issues with SABNZBD

Posted: January 26th, 2016, 7:04 am
by ZarthDK
Hi,

Im sorry for asking you, but im really scared to fuck something up.

The script you mentioned above, is that exactly how im supposed to type it in the file including --> #!/bin/sh and then i just change my username and group for the Linux partition.

Can you explain how i can set the umask

I want my group to be able to read / write, so if im a member of administrators then i should be able to read write.

is umask working for each folder or is it a global setting?

Thanks :)

Re: Issues with SABNZBD

Posted: January 26th, 2016, 7:23 am
by shypike
The #!/bin/sh part is the marker for the operating system that this is a "shell script".

umask depends on how SABnzbd is started.
As you probably use a package create by a third party, you should ask that third party.