Git Product home page Git Product logo

Comments (7)

if-kenn avatar if-kenn commented on August 15, 2024

@LennardWesterveld did you remove /Users from the Docker for Mac preferences? From the Readme:

You can now specify what mounts you want in the d4m-nfs-mounts.txt file. Note that if you do this, you need to make sure that it does not conflict with D4M settings, in other words if you want to have /Users be served by NFS instead of osxfs you will need to remove it from the D4M Preferences -> File Sharing. The /tmp share must stay since that is how d4m-nfs exchanges information with the D4M Moby VM.

from d4m-nfs.

LennardWesterveld avatar LennardWesterveld commented on August 15, 2024

@if-kenn Yes i did: https://www.dropbox.com/s/yy5w6vglzwst983/Schermafdruk%202016-12-01%2010.03.14.png?dl=0

from d4m-nfs.

if-kenn avatar if-kenn commented on August 15, 2024

@LennardWesterveld one other thing that I thought of is that you are trying to export the mounts with UID 1000 and GID 1000 that probably don't exist, unless you created a user and group on your Mac with these IDs.

The idea behind UID/GID mapping is that the NFS host export maps permissions the to corresponding UID/GID on the system, not change the owner on the client.

As a sanity check to see if things work, change:

/Volumes:/Volumes:1000:1000
/private:/private:1000:1000
/Users:/Users:1000:1000

to:

/Volumes:/Volumes:0:0
/private:/private:0:0
/Users:/Users:0:0

from d4m-nfs.

if-kenn avatar if-kenn commented on August 15, 2024

For better explanation see:

https://linux.die.net/man/5/exports

from d4m-nfs.

LennardWesterveld avatar LennardWesterveld commented on August 15, 2024

Hi @if-kenn,
Alright i understand, so thats why the owner ship doen't change in the docker container.
So when i change it to 0:0 the mount permissions will be root so there will be no issue when writing?

Anyway i will try it today if that works, probably thats solves my issue.

from d4m-nfs.

if-kenn avatar if-kenn commented on August 15, 2024

So to accomplish what you are wanting, you would use the 0:0 ids and on your Mac change desired ownership of files to 1000:1000, e.g:

sudo chmod 1000:1000 /Users/lennard/foobar

Even though the user and group does not exist most Unix systems still allow you to assign a numeric ID instead of a name. Note that you might have to add you user to the 1000 group or some such thing. Every circumstance requires a different tactic, even when not using NFS.

Good luck!

from d4m-nfs.

if-kenn avatar if-kenn commented on August 15, 2024

@LennardWesterveld I am going to consider this closed, please reopen or make a new issue if you need to.

from d4m-nfs.

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.