GithubHelp home page GithubHelp logo

Comments (5)

PikuZheng avatar PikuZheng commented on July 17, 2024 1

I have a similar operating environment. Every time I start metube, it reports lots of errors when modifying permissions, but it does not affect.

I think the key is whether the permissions are configured correctly when the host mounts /mnt/nas. You should first check whether it can be read and written normally, and then map it to the container.

If the host is a synology, I recommend setting the user id to the same as the synology admin's id.

from metube.

Neurofibromin avatar Neurofibromin commented on July 17, 2024

The root user can write the folders just fine - in fact the .metube folder gets created. The problems start when metube tries to change the owner of the directory and lowers its privileges to user 1000:1000. I am using Truenas, but this is in fact not dependent on the nas at all - the owner setting is a limitation of the samba protocol itself.

I tried specifying in the compose file user: "0:0" but this changed nothing. I maintain: The ideal solution would be if metube just tried to create every downloaded file as root.

from metube.

PikuZheng avatar PikuZheng commented on July 17, 2024

As far as I know compose will change the folder permissions when creating the container. This may cause the folder permissions to not match what you expect.
I don't use compose, and I force read and write permissions when mounting the nas path. See #195 .

set UID: 0 and GID: 0 via environment variables, if you want to try.

from metube.

Neurofibromin avatar Neurofibromin commented on July 17, 2024

I am not mounting the cifs share with docker: the cifs drive is already mounted by fstab, so I cannot change the permissions at mount (I'm not allowed to change fstab settings by company policy). I just tried user: "0:0", this does the same thing as UID: 0, GUID: 0. Compose will not change permissions, because fstab does the mounting. Samba does not support changing acls post-mount, pursuing that route is meaningless.

The solution would be if metube just tried to create every downloaded file as root. Is this possible?

from metube.

PikuZheng avatar PikuZheng commented on July 17, 2024

I just tried user: "0:0", this does the same thing as UID: 0, GUID: 0

i think the entrypoint.sh query the uid/gid in env only.

The solution would be if metube just tried to create every downloaded file as root. Is this possible?

yes UID: 0 and GID: 0 via env will do this but sometime root user is not 0:0 or disabled (ubuntu for example, root user name is not 'root' by default

from metube.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.