Hey there,
I want to setup the "media plugins" to work with each other but I'm having problems with all the users, groups and permissions in general:
Sonarr and Radarr will send a torrent, that they got from jackett, to deluge to download. The downloaded file (that is owned by deluge) needs to be "imported" (as Sonarr and Radarr call it) by Sonarr and Radarr, but that is only possible when Sonarr and Radarr have the read and write permissions. Then Sonarr and Radarr need to move the downloaded file to the plex media folder. Then Plex also needs the correct permissions to be able to read the file (so that it can add the episode/movie to it's library). And then, Bazarr also needs to be able to read (and maybe write) the files so that it can add subtitles. Those subtitles (external .srt's) also need to be read by Plex, Sonarr/Radarr and Bazarr. The dataset that stores everything (name of dataset is "Plex Media") also needs the correct ACL and ownership so that every service can add and read their files (Sonarr, Radarr, Bazarr, Deluge) to the correct folder. But I also need to be able to read and write the dataset which I access via a SMB share.
You get it. It's a mess. My goal is to have the user "Media", which all the services will be run under in their jail (is that possible? Can you run a plugin under a different user?) and add "Media" to my group and set all permissions to 660. This way, every file created, moved and read is owned by "Media". Then I set ownership of the dataset "Plex Media" to the user "Media" and to MY group (which "Media" is in). This way, everyone can do what they need to do (because they are all run by the same user), and I can also read and write the files because "Media" is in my group and permissions are 660.
Only problem: I have no clue how to do this! And I hope you can help me. Simply said: I want to create a user, and run every plugin under that user. I also want to set permissions for the files that every plugin creates.
Info:
All the services are installed as (community)plugins:
I want to setup the "media plugins" to work with each other but I'm having problems with all the users, groups and permissions in general:
Sonarr and Radarr will send a torrent, that they got from jackett, to deluge to download. The downloaded file (that is owned by deluge) needs to be "imported" (as Sonarr and Radarr call it) by Sonarr and Radarr, but that is only possible when Sonarr and Radarr have the read and write permissions. Then Sonarr and Radarr need to move the downloaded file to the plex media folder. Then Plex also needs the correct permissions to be able to read the file (so that it can add the episode/movie to it's library). And then, Bazarr also needs to be able to read (and maybe write) the files so that it can add subtitles. Those subtitles (external .srt's) also need to be read by Plex, Sonarr/Radarr and Bazarr. The dataset that stores everything (name of dataset is "Plex Media") also needs the correct ACL and ownership so that every service can add and read their files (Sonarr, Radarr, Bazarr, Deluge) to the correct folder. But I also need to be able to read and write the dataset which I access via a SMB share.
You get it. It's a mess. My goal is to have the user "Media", which all the services will be run under in their jail (is that possible? Can you run a plugin under a different user?) and add "Media" to my group and set all permissions to 660. This way, every file created, moved and read is owned by "Media". Then I set ownership of the dataset "Plex Media" to the user "Media" and to MY group (which "Media" is in). This way, everyone can do what they need to do (because they are all run by the same user), and I can also read and write the files because "Media" is in my group and permissions are 660.
Only problem: I have no clue how to do this! And I hope you can help me. Simply said: I want to create a user, and run every plugin under that user. I also want to set permissions for the files that every plugin creates.
Info:
All the services are installed as (community)plugins:
- Plex
- Sonarr
- Radarr
- Deluge
- Jackett
- Bazarr