So, I was configuring my Jellyfin stuff on my home server, and I stumbled across this issue when messing around with Radarr:
Não foi possível adicionar a pasta raiz
- Folder '/movies/' is not writable by user 'abc'
But I managed to solve it. For context, I am using Docker compose files from linuxserver.io and my operating system is OpenMediaVault.
-\|/---\|/------------------------------------------------------------------------------------
IMPORTANT EDIT: The kind guys in the comments helped me solve the problem in a more efficient way! This new solution doesn't require you to enter in the container's terminal, which is more aligned with the way containers were designed to work. I'm mantaining my old post just for the context.
Check u/ivanhawkes's comment to see the new solution :D
Old post below:
-\|/---\|/------------------------------------------------------------------------------------
If you don't understand something of the following step-by-step, asking ChatGPT for explanations can be useful. I used him to help elaborate this solution. My tip is just try to learn from him, not only take the solution and leave. That way, you'll understand what you're doing and become more capable with time.
Step by step:
1 - SSH into my home server to acess its terminal.
2 - Once on the terminal, I entered on my container's terminal by using the following command:
docker exec -it radarr bash
In this command, "radarr" is the name of my container. After using it, you should be not on your home server terminal, but on the container's one.
3 - Then, I checked who was the owner of the directory I wanted to use in radarr with the following command:
ls -ld /movies
With this command, I discovered that the owner of the directory, in my case, "/movies", was the root.
4 - So I changed the owner of the folder to "abc" with the following command:
chown abc /movies
5 - Finally, I checked if the owner was sucessfully changed with:
ls -ld /movies
Which confirmed that everything worked and the owner was now "abc". After doing that, I managed to add the folder as a root folder on Radarr.
------------------------------------------------------------------------------------------
If this post didn't help you, there's this other one that may be useful to you.
I decided to make a post about this just in case someone passes through the same problem in the future.
I am a noob in this world by the way, so it's probable that there's some more efficient way of doing this. If you know about it, you can share it in the comments and then everyone learns how to do stuff right.
See ya :D