You are not logged in.
Pages: 1
I've got sonarr (plus some other software) installed via AUR and have it enabled in systemd with an edited provider unit to run as my personal user. The 2 directories sonarr uses to run are /var/lib/sonarr and /usr/lib/sonarr and the permissions on these folders are owned by root. However in order to run sonarr as my user I have to chown these folders to my user. Which means every time I update sonarr it changes the ownership of these folders back to root again.
How do i run sonarr (or any program for that matter) as a user but keep these folders owned by root? Is there a better way to do what I'm doing?
Offline
This may not be the proper way, but why not change the permissions on those foldersdirectories to 0x777 ? That will give 'others' read, write and execute permissions. Those permissions will also survive an update with a warning.
Edit: Oh yeah, Welcome to the Arch Linux forums
Last edited by ewaller (2016-07-06 14:18:22)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Thanks for the welcome. I'm quite a long time linux user but generally I've always found the solution to my problems from reading other people's problems. I've finally come across an issue that is unique enough to actually ask the question myself. Either that or I lack the knowledge to search for the right topics.
So, is changing the permissions of the directories to 777 safe/wise?
Offline
TBH, I've no idea what sonarr is. If the data stored in those directories is sensitive, perhaps it would not be safe. If those data are not sensitive, and this is not a public system, I so no issues.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Anything that's writing to /usr at runtime is poorly designed.
Offline
Anything that's writing to /usr at runtime is poorly designed.
Agreed. An suggestions for a better path forward? I'm not a huge fan of my solution.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Unfortunately, I don't. Unless the software has a built-in way to change the dirs it writes to, there's really not much to do AFAIK.
Offline
Pages: 1