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
How to configure uid/gid with extraMounts
option?
#71
Comments
Hm changing uid and gid doesn't quite seems to work with 9p. Would it be possible to switch to virtiofs? My current workaround with bindfs:
|
Have you tried setting these mount options on the virtio-9p mounts?
Those are coming from here: https://www.kernel.org/doc/Documentation/filesystems/9p.txt |
There is also X-mount.idmap= otherwise: https://github.com/brauner/mount-idmapped |
Hm didn't have any luck with these two approaches. Thank you for sharing anyway. Currently I'm trying to use virtiofs but uid and gid mapping as non-root user doesn't seem so simple yet |
Would be interesting to have support for this in nixos-shell |
Afaik This is not possible with 9p unfortunately. |
Hey,
I'm looking to configure permissions of a 9p mount point. Usually they are owned by root inside the nixos-shell VM. How can I change the ownership?
What I can do currently is:
or alternaivley
Best regards
Jonas
The text was updated successfully, but these errors were encountered: