Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow specifying wildcards (`*`) for `--[ug]id-map` on mounts #1200
Comments
|
Hi @dhruvrajan, You're right, it's a missing case at the moment. We default to a mapping of "map all uids/gids to the default user", but we don't support it on the command line. |
|
Thanks for the quick response! I'm happy to take a look at this and see if I can help. |
|
@dhruvrajan great! This is where you'd need to look: mount.cpp and then sftp_server.cpp#L302. |
|
Could this be a bug? I am running Windows 10 and see the same issue:
It looks like the cause of processes that try to access files in the mount getting 'permission denied' for Read access to files. Here is syslog when I start named with a config file in mount:
I have read #1346 (and others covered by 'is:issue is:open map' ), and I don't think they are the issue. I don't code C or it's variants, but, will be happy to collaborate from a test bed perspective if I can. hth, David |


What are the host-side ids to use when running
multipass mount? I am accessing files through a user other than "multipass".Without specifying -u and -g, I see from "multipass info", the following map: "UID map: -2:default". From the code, it looks like both the host and instance ids should be unsigned integers.