Page 1 of 1

Sabnazbdplus Permission error

Posted: February 10th, 2011, 9:20 am
by slipslip
Hi,

I have sab on an openbsd server. I have created its own user account for it to run under. The problem is I get this error.

sabnzbdplus# Traceback (most recent call last):
  File "/usr/local/bin/SABnzbd-0.5.6/SABnzbd.py", line 1257, in
    main()
  File "/usr/local/bin/SABnzbd-0.5.6/SABnzbd.py", line 673, in main
    org_dir = os.getcwd()
OSError: [Errno 13] Permission denied

What perms do I need to give it to run.

Thanks in advance.

Re: Sabnazbdplus Permission error

Posted: February 10th, 2011, 10:15 am
by shypike
It looks like SABnzbd isn't allowed to query the folder it was started from.
This is the active directory from where you started the command to start SABnzbd.
So not necessarily where SABnzbd.py itself lives.

Re: Sabnazbdplus Permission error

Posted: February 10th, 2011, 10:36 am
by slipslip
Thanks but that's not it as it has permission to all of its folders/files under the user it gets executed as

Re: Sabnazbdplus Permission error

Posted: February 10th, 2011, 10:45 am
by phyber
slipslip wrote: Thanks but that's not it as it has permission to all of its folders/files under the user it gets executed as
But which directory was that user in when sabnzbd was started? Have the permissions on that directory changed since sabnzbd was started?
On Linux, I would look in /proc/ or use 'lsof' to see what the processes CWD was. I'm not sure what you have available on OpenBSD, but I'll assume you can use similar tools to see what it's doing.