Page 1 of 1

Wrong permissions on unpacked files

Posted: March 4th, 2015, 9:30 pm
by boardwarp
Hi there, I've had SABnzbd running well on my Synology NAS for a few years. Recently I changed the download paths for SAB, now downloaded folders get 777 perms like they should, but subfolders and files are on 666 which requires I manuallgy change permissions before Plex can see the files. The incomplete and download directories are owned by SAB, and set to 777. The permissions setting is 777 also.

I think the issue may be that SAB applies the perms, then unpacks the files? I just need to get things back how they were, but with the new directories.

EDIT: Dump of logs from a test http://pastebin.com/syp6yKqV

Re: Wrong permissions on unpacked files

Posted: March 5th, 2015, 4:47 am
by shypike
You did set permissions in Config->Folders?

Re: Wrong permissions on unpacked files

Posted: March 6th, 2015, 5:44 am
by boardwarp
Yup, they're set to 777.

The folder of the unpacked file has drwxrwxrwx permissions, but the contents are -rw-rw-rw-

Re: Wrong permissions on unpacked files

Posted: March 6th, 2015, 5:28 pm
by shypike
The files have the right permission.
They don't need "x", since they're not executable.

Re: Wrong permissions on unpacked files

Posted: March 6th, 2015, 7:54 pm
by boardwarp
If they don't have x, my Plex Media Server can't see them. Why can't SAB just set the permissions as I've specified? It was working in the past.

Re: Wrong permissions on unpacked files

Posted: March 7th, 2015, 2:26 am
by shypike
SABnzbd has done it like this forever.
A work-around is to make your own user script.
Something like this:
cd "%1"
find . -type f -exec chmod +x {} \;