Page 1 of 1

No execute permissions on completed files (folders have 777)

Posted: August 23rd, 2013, 7:32 am
by dominicmghuigyhj
I had sabnzb working but I have made permission changes and reinstalled and now it does not work as before. Any file I download does not get execute permissions. Folder has all permissions. In my settings I have 777 permissions. I also use sickbeard but the issue happens even when no script is used. What could be affecting permissions like this?

Sabnzb is installed on Synology NAS, version 0.7.14-2

Here's the output from the script:

Loading config from /usr/local/sickbeard/share/SickBeard/autoProcessTV/autoProcessTV.cfg
Opening URL: http://localhost:8081/home/postprocess/ ... ads%sample


<html>

<head>

<title>Access denied</title>

</head>

<body>

<br/>

<font color="#0000FF">Error 401 Unauthorized: You need to provide a valid username and password.</font>

</body>

</html>

Re: No execute permissions on completed files (folders have

Posted: August 23rd, 2013, 8:45 am
by sander
"Any file I download does not get execute permissions." ... why do you want *downloaded* files to have execute permission?

Re: No execute permissions on completed files (folders have

Posted: August 23rd, 2013, 9:59 am
by dominicmghuigyhj
Without execute permissions sickbeard script fails. Same goes for manual processing in sickbeard and XBMC media center cannot play those files. I did'nt think it needed execute permissions but it seems like it does because as soon as I apply execute permissions everything works. I am setting permissions to 777 so I don't understand why there are no execute permissions regardless whether I actually need it or not.

Re: No execute permissions on completed files (folders have

Posted: August 23rd, 2013, 10:07 am
by sander
I don't understand why sickbeard would need execute permissions on downloaded files. But I must say I know nothing about sickbeard.

Did you read http://wiki.sabnzbd.org/unix-permissions ? And did you fill out '0777' (which is something else than '777')?

Re: No execute permissions on completed files (folders have

Posted: August 23rd, 2013, 10:25 am
by dominicmghuigyhj
I did read it but did not think 0777 was different from 777. Changed to 0777 not waiting for download to finish to test, will take a while with my net :)

Re: No execute permissions on completed files (folders have

Posted: August 23rd, 2013, 10:41 am
by dominicmghuigyhj
No luck, still no execute permissions on the files. I assume No restart was needed for new 0777 permission settings to apply. Any idea what else it could be?

Re: No execute permissions on completed files (folders have

Posted: August 23rd, 2013, 12:52 pm
by sander
I tried it out myself (SABnzbd 0.8.x), and the result is:

Directories are drwxrwxrwx
Files are -rw-rw-rw-

So the same as you. Now back to the info page, which says:

"You need to specify the settings for folders, so with the X bits set, SABnzbd will automatically remove any X bits for the files."

Does that state files do not get the X bit?

Re: No execute permissions on completed files (folders have

Posted: August 23rd, 2013, 3:59 pm
by dominicmghuigyhj
I honestly do not know about x-bits as I am new to linux. I have accidentally discovered something though. The sub-folder that sabnzb was using was created manually (within windows) and so the owner was "user1" instead of "sabnzbd". When the folder was created automatically by sickbeard the owner was "sickbeard" and the files had execute permissions after sabnzbd finished downloading it. "user1" is super admin and had all permissions so maybe that messed with sabnzbd.