Sabnzbd + sickbeard post processing permissions issues
Posted: May 29th, 2013, 10:04 am
Hi everyone,
I've been using Sabnzbd along with Sickbeard for a year or so on my Windows 7 PC. Recently I got myself a nice Raspberry Pi and decided to install Sabnzbd and Sickbeard on it. Everything works great with Sabnzbd and Sickbeard, except the Post-Processing. It is not an issue with Sabnzbd or Sickbeard, but rather a permissions issue that I must figure out how to fix. I hope you can help me, as my Linux knowledge is far less advanced than my Windows knowledge.
I am running Sickbeard and Sabnzbd on their own process user. Sickbeard is running under "sickbeard" and Sabnzbd is running under "sabnzbd". Both users are part of a user group called "media_users". The complete and incomplete folders of Sabnzbd have root:media_users as owners and rwxrwxr-x. When Sabnzbd create files under these folders, they are created as sabnzbd:sabnzbd and rw-rw-r--. Sickbeard then tries to process them (as part of post-processing) and because Sickbeard is running under its own user, he is able to read the files stored in the complete folders, but it cannot delete it. The user sickbeard is considered as "other" on the completed files. It then fails and say that the processing has failed. The file copy worked, it just did not delete the original files into the complete download folder. I have to manually remove the files.
Is there a way to "force" Sabnzbd to create new files with the owners sabnzbd:media_users ? As I said, this might not be a Sabnzbd question but more a Linux question. If media_users can be the group owner of the completed files, Sickbeard's user will be able to delete them because it is part of the group.
I have the same issue with the files that Sickbeard creates when copying. It creates them as sickbeard:sickbeard rw-rw-r-- and I would like them to be created as sickbeard:media_users.
Any ideas how to fix ? I would like to avoid 777 permissions and running all services under the same user.
Thanks !
Neo
I've been using Sabnzbd along with Sickbeard for a year or so on my Windows 7 PC. Recently I got myself a nice Raspberry Pi and decided to install Sabnzbd and Sickbeard on it. Everything works great with Sabnzbd and Sickbeard, except the Post-Processing. It is not an issue with Sabnzbd or Sickbeard, but rather a permissions issue that I must figure out how to fix. I hope you can help me, as my Linux knowledge is far less advanced than my Windows knowledge.
I am running Sickbeard and Sabnzbd on their own process user. Sickbeard is running under "sickbeard" and Sabnzbd is running under "sabnzbd". Both users are part of a user group called "media_users". The complete and incomplete folders of Sabnzbd have root:media_users as owners and rwxrwxr-x. When Sabnzbd create files under these folders, they are created as sabnzbd:sabnzbd and rw-rw-r--. Sickbeard then tries to process them (as part of post-processing) and because Sickbeard is running under its own user, he is able to read the files stored in the complete folders, but it cannot delete it. The user sickbeard is considered as "other" on the completed files. It then fails and say that the processing has failed. The file copy worked, it just did not delete the original files into the complete download folder. I have to manually remove the files.
Is there a way to "force" Sabnzbd to create new files with the owners sabnzbd:media_users ? As I said, this might not be a Sabnzbd question but more a Linux question. If media_users can be the group owner of the completed files, Sickbeard's user will be able to delete them because it is part of the group.
I have the same issue with the files that Sickbeard creates when copying. It creates them as sickbeard:sickbeard rw-rw-r-- and I would like them to be created as sickbeard:media_users.
Any ideas how to fix ? I would like to avoid 777 permissions and running all services under the same user.
Thanks !
Neo