-
Notifications
You must be signed in to change notification settings - Fork 310
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
Update UID/GID with conflicting user/group #2402
Comments
This is missing for repository containers. (It works when opening a local folder in a container.) |
Rereading, that's what doesn't work for you. What's your UID and GID locally? We check if they exists in the container on an existing user or group and don't do the update if they do. |
UID=12070 and GID=101 When I did quick check of |
But, it looks like the
Is there a way to workaround this easily? |
Making the user part of an existing group seems like a bad idea. One option might be to first change the ID of the ssh group. That would require updating all file/folder ownerships because these are stored as GIDs (not names). |
@chrmarti @bamurtaugh This just came up in microsoft/vscode-dev-containers#1493 with GID 100. The interesting thing here is that 100 is The alternative could also be to just update the UID if there's no conflicts but ignore the GID. Others are harder, since adding a user to an existing group can have adverse side effects. |
I was also wondering if it's possible to update the UID even if there is a conflicting GID (and vice-versa) so that if one of them does not conflict then it gets updated. It seems that by design the update is an all or nothing action, which is unfortunate becaues in my case mentioned above, just updating the UID would probably be good enough for us to get by with. |
Having this issue on nixos, by default the group that you are a part of is Or is there some security concern here where you could gain root access by posing as another user when launching vsocde in the first place? |
We now do update the UID if the GID already exists and in this case leave the GID unchanged. |
Issue
The "remoteUser" / "updateRemoteUserID" features of VS Code Remote don't seem to be working when I download this example and try to use it. Steps:
uid
via terminal:System Info
About VS Code:
Linux Info
Extension Info
Remote - Containers: 0.101.1
The text was updated successfully, but these errors were encountered: