Giter Site home page Giter Site logo

Comments (5)

fhuitelec avatar fhuitelec commented on July 29, 2024 4

Please copy files when you need to control the permission.

From what described @artggd, it seems there is a permission corruption rather than a need to get control over permissions.

The /app folder in the container has read and execute bits for all (user, group & other): why a non-root user (ie. www-data) could not enter the directory with such permissions?

Expected behavior.

With the emphasis I did on the permission issue, is this still expected?

If yes, could you point us in the component in lima from which this behaviour comes from (the reverse SSHFS with sshoker maybe?)

Finally, if this is expected behaviour on Lima, this is quite not the case from a user stand point: would you agree to add this in the README's troubleshooting section?

from lima.

AkihiroSuda avatar AkihiroSuda commented on July 29, 2024 1

Expected behavior. Please copy files when you need to control the permission.

from lima.

AkihiroSuda avatar AkihiroSuda commented on July 29, 2024

Could you provide full commands to reproduce the issue

from lima.

artggd avatar artggd commented on July 29, 2024

Thanks for your reply, here's how to reproduce:

  1. Start limactl and run a shell
$ limactl start
$ lima
  1. Run a bash session in a docker container, binding a volume app to it
$ docker run --volume $PWD/myproject:/app --rm -it nginx:latest bash
  1. ls -lad app to see the files permissions on the volume should give you this:
root@b6444cc8d609:/# ls -lad app
drwxr-xr-x 1 root root 64 Jun 29 12:43 app
  1. su as www-data
root@b6444cc8d609:/# su -s /bin/bash www-data
  1. Try to move to app directory
www-data@b6444cc8d609:/$ cd app
bash: cd: app: Permission denied

-> The app folder is not readable by www-data, only root can access it.

from lima.

fhuitelec avatar fhuitelec commented on July 29, 2024

@AkihiroSuda, did you get a chance to review my last comment?

from lima.

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.