SABNZBD / Sickbeard Permissions Error on Synology NAS
Posted: March 20th, 2016, 6:33 am
Hello,
I am having a strange issue whereby files that are downloaded and then run through the Sickbeard Post Processing Scripts don't inherit the permissions that are set on my Synology.
I have narrowed this down to the Sickbeard post-processing script (that is executed from SABNZBD) - as using an ssh session logged in as root (which is what SABNZBD and Sickbeard are running as) - if I simply copy the file from the Download directory to the destination (/volume1/Media/TV/Current/<show>/<season>/file.ext) - the file inherits all the permissions no problem.
If I then delete the file, and execute a manual post processing from Sickbeard - the file ends up in the correct directory no problem (with correct naming etc), but only has explicit rights assigned for the admin user and is not inheriting the correct rights from the parent directory.
In the Sickbeard logs - I can see that it says "Setting permissions for <file> to 600 as parent directory has 700" - although I just want this to inherit the rights already on the parent folder - like what happens with the standard copy above. The line before in the logs shows it copies the file, so it would be good to leave out the permissions step to see if that will leave it with the inherited rights.
Does anyone know where this script is located or know how to fix this issue?
Thanks!
I am having a strange issue whereby files that are downloaded and then run through the Sickbeard Post Processing Scripts don't inherit the permissions that are set on my Synology.
I have narrowed this down to the Sickbeard post-processing script (that is executed from SABNZBD) - as using an ssh session logged in as root (which is what SABNZBD and Sickbeard are running as) - if I simply copy the file from the Download directory to the destination (/volume1/Media/TV/Current/<show>/<season>/file.ext) - the file inherits all the permissions no problem.
If I then delete the file, and execute a manual post processing from Sickbeard - the file ends up in the correct directory no problem (with correct naming etc), but only has explicit rights assigned for the admin user and is not inheriting the correct rights from the parent directory.
In the Sickbeard logs - I can see that it says "Setting permissions for <file> to 600 as parent directory has 700" - although I just want this to inherit the rights already on the parent folder - like what happens with the standard copy above. The line before in the logs shows it copies the file, so it would be good to leave out the permissions step to see if that will leave it with the inherited rights.
Does anyone know where this script is located or know how to fix this issue?
Thanks!