How to set group permissions at the start of downloading?
Posted: January 9th, 2016, 11:00 pm
I use a CIFS share mounted on Ubuntu 14.04 server for Sabnzbd's folders (both temporary and completed). The share is already mounted, and the user that Saznzbd runs as (saznzb) is added to the "sambashare" group so that it has permissions to read/write to the folders.
If I become the saznzb user in terminal, I can read and write to the download folders no problem. If I mkdir inside the temporary downloads folder, it creates a folder with 0775 permissions, just what I want.
The issue is that when you give Sabnzbd a NZB file and it creates a folder inside the temporary download folder, it creates the folder with 0700 bits. Since it derives its ability to read/write to that CIFS share from the group permissions, it's effectively created a folder that it cannot use. Of course this means it doesn't work.
I found the "permissions for completed downloads" option, but that's not going to help here.
Any suggestions? Thanks. I'm running 0.7.16.
If I become the saznzb user in terminal, I can read and write to the download folders no problem. If I mkdir inside the temporary downloads folder, it creates a folder with 0775 permissions, just what I want.
The issue is that when you give Sabnzbd a NZB file and it creates a folder inside the temporary download folder, it creates the folder with 0700 bits. Since it derives its ability to read/write to that CIFS share from the group permissions, it's effectively created a folder that it cannot use. Of course this means it doesn't work.
I found the "permissions for completed downloads" option, but that's not going to help here.
Any suggestions? Thanks. I'm running 0.7.16.