-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
consider mounting with guests user/group ids on filesystem #20
Comments
Does that also imply that the matching user and group are creates on the VM? So for example, on my machine I have |
I don't believe so - it means that the folders will get mounted as the user that you are connecting to the vagrant box as. This is usually the 'vagrant' user, but could be something different depending on how you set up the box. Here is the code from the vbox plugin that does this now: |
Ahh, ok. It is the vagrant user. Then it makes sense. +1 for this feature. |
Any ETA on this one? |
Hey Hardy.. I don't have one right now. I had started to work on it, but other things got pushed to the foreground so I haven't revisited. |
@dustymabe do you have any code worth sharing? I might be able to finish it off for you. I was wondering where the best place would be for the uidmap and gidmap files, and the best way to get them on to the host, especially in the case that you're sharing your project dir with type sshfs |
@nicobrevin I don't have anything on this right now. |
I've got this "working" with the following patch:
This works, although it makes every file and dir appear to be owned by the vagrant user, so mostly just a cosmetic fix - i.e. same permissions apply with or without this change. I suppose the better fix would by to supply an idmap=file and map only the vagrant user to your workstation user ... anyway. |
The vbox synced folder plugin detects the user's uid and gid and then sets those options when mounting the filesystem. We should consider doing something similar.
The text was updated successfully, but these errors were encountered: