metube icon indicating copy to clipboard operation
metube copied to clipboard

Problem with created file permissions

Open samwathegreat opened this issue 10 months ago • 2 comments

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?

samwathegreat avatar Jun 25 '25 15:06 samwathegreat

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

blue-kaleidoscope avatar Jun 30 '25 06:06 blue-kaleidoscope

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?

samwathegreat avatar Jun 30 '25 18:06 samwathegreat