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

Enable support to retroactively add users to /etc/subuid and /etc/subgid files #6

Closed
joebonrichie opened this issue Nov 16, 2023 · 0 comments · Fixed by #7
Closed
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@joebonrichie
Copy link
Contributor

joebonrichie commented Nov 16, 2023

We typically want this to enable support for rootless container like solutions e.g. podman OOTB.

Requirements:

  • Check if /etc/subuid and /etc/subgid files exist, and touch them if they don't.
  • Run usermod --add-subuids 1000000-1065535 --add-subgids 1000000-1065535 root if necessary
  • Run usermod --add-subuids 1065535-1065535 --add-subgids 1065535-1065535 $USER, per user in users group
  • The above should only run if the files do not exist. It should never run again, as the files should be maintained by shadow after that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant