Problem with created file permissions
I've set the configuration file to use a different user/group id, but saved files are still owned by root. I need them to be saved as the specified user so that my other services that are sharing the folder also have read/write access to created (downloaded) files.
Is there a solution? I'm running in an LXC container, not docker.
In the configuration file:
UID=1234 GID=1234
However, if I start a download, it's still owned by root and not the specified UID/GID.
Any suggestions?
This is how I configured mine and it works as expected:
user: "1003:1000"
(...)
environment:
UMASK: "007"
Created files do look like this:
-rw-rw---- 1 1003 1000
This is how I configured mine and it works as expected:
user: "1003:1000" (...) environment: UMASK: "007"Created files do look like this:
-rw-rw---- 1 1003 1000
Looks like you are running this in docker? I'm running it in LXC with a configuration file (.env).
Obviously the configuration file is being read, because it's recognizing the assigned download directory correctly and saving the files there. But even though I've specified UID and GID, those seem to be ignored. It saves files as root no matter what I do.
Any ideas?