-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: Create headscale user and group as system user/groups #2322
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
base: main
Are you sure you want to change the base?
feat: Create headscale user and group as system user/groups #2322
Conversation
When creating the headscale user and group, create both as system groups rather than creating them as 'user' groups. FIXES juanfont#2278
Tested the new
|
How will this impact already created users? |
@kradalby existing users/groups will not be modified by this change, they will remain with their non-System UIDs/GIDs. Example:
|
If the install target is using systemd, would it not be beneficial to use DynamicUser? The cockpit project does this now and it works really well: https://github.com/cockpit-project/cockpit/blob/main/src/systemd/cockpit-wsinstance-socket-user.service You set a dependency on the user unit, and then the service uses that dynamically, using cgroups which means it is adequately sandboxed |
When creating the headscale user and group, create both as system groups rather than creating them as 'user' groups.
FIXES #2278