Giter Club home page Giter Club logo

Comments (4)

sodennis avatar sodennis commented on June 2, 2024

Looks like by setting CHECK_PERM_DATA to false, will prevent the root user taking ownership the /data directory.

chown root:root /data # fix chroot sftp

Why does sftp require us to set this directory to belong to root?

from docker-rutorrent.

Magicalex avatar Magicalex commented on June 2, 2024

The chroot folder /data must be owned by root to work. Indeed it's specific to my use.

But what is your problem with this, maybe we can find a more elegant solution.

from docker-rutorrent.

sodennis avatar sodennis commented on June 2, 2024

I'm currently mounting a non-root directory into this directory because I didn't want to run this container under root. Since we are passing in UID and GID as the environment variables, I didn't expect the folder would be owned by root.

The workaround of setting CHECK_PERM_DATA to false works fine for me. A more elegant solution can be CHECK_PERM_DATA should use the UID and GID to own the directories instead of root. Another solution can be defaulting CHECK_PERM_DATA to false.

I'm not sure how does your workflow works. Shouldn't root already have access to all files within the system?

from docker-rutorrent.

Magicalex avatar Magicalex commented on June 2, 2024

Ok, I found another solution. I have removed the line chown root:root /data

from docker-rutorrent.

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.