I’m trying, and struggling a little bit with getting the three items in the title setup the way that I want.
Running Arch.
I would like to run Radarr, Sonarr and SABnzbd all under the same user/group. My reasoning is that I (am just being overly particular) want any of the files created by those services to fall under the same owner/group. This is easy enough to accomplish by running systemctl edit service.service
and adding the appropriate lines in the configuration for each one and saving it so the services run using the specified user/group.
The issue that I’m having is that the correlating folders in /var/lib/ have the ownership of the original users. I can manually change that ownership to the user/group I want but if I reboot the computer the SABnzbd folder ownership reverts back to default (the other two were doing the same thing but suddenly stopped and I’m not 100% sure why) or if the services get updated, the folders will also revert back to their default user/group.
Is there a way for me to enforce the ownership of those folders to the user/group that I have set to run the services regardless of them getting updated or the machine rebooting?
I’m still working on learning about containers but not quite there yet.
Default being, when each service is installed it creates an individual user/group (sonarr, radarr, sabnzbd) and the folder that is created in /var/lib/ for each service is set to those particular users/groups.
At this time, sonarr and radarr seem to be ok (I will need to double check after an update to them) but SABnzbd reverts the folder permissions every time I reboot and complains whenever I reboot since it can’t write to the db or log files because the permissions change. I have looked at the config but didn’t see anything outstanding that would indicate a reason it would be changing. Unless I am missing a different config file somewhere outside of that folder. There aren’t any settings from within the web interface pointing to that either, at least from what I could see.