Skip to content
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

issues with high-numbered UIDs/GIDs inside inner container #118

Open
johnstcn opened this issue Dec 24, 2024 · 0 comments
Open

issues with high-numbered UIDs/GIDs inside inner container #118

johnstcn opened this issue Dec 24, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@johnstcn
Copy link
Member

Problem

If you try to add a user inside the inner container with a UID above 65535 and attempt to su to that user, you will get the error cannot set groups: invalid argument.

We should document a process users can follow to enable the usage of such UIDs/GIDs inside the inner container.

Details

Inside the envbox container, we define a sub-UID/GID range 100000-165535 for the coder user (note: sysbox-mgr automatically adds a separate UID range for the sysbox user):

# cat /etc/subuid
coder:100000:65536
sysbox:165536:65536 # only appears after sysbox is started
# cat /etc/subgid
coder:100000:65536
sysbox:165536:65536 # only appears after sysbox is started
@johnstcn johnstcn added the documentation Improvements or additions to documentation label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant