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

NixOS has gid-uid collisions in modules/misc/ids.nix #3727

Closed
7c6f434c opened this issue Aug 23, 2014 · 8 comments
Closed

NixOS has gid-uid collisions in modules/misc/ids.nix #3727

7c6f434c opened this issue Aug 23, 2014 · 8 comments

Comments

@7c6f434c
Copy link
Member

Of the fresh ones we have:

gitolite - firebird

unifi - docker

tss - dhcpd

@edolstra
Copy link
Member

We should change the ones that were added more recently.

@lucabrunox
Copy link
Contributor

gitolite is a user while firebird is a group, though having the same id. Is that a problem?
Same goes for unifi-docker and tss-dhcpd.

@7c6f434c
Copy link
Member Author

gitolite is a user while firebird is a group, though having the same id. Is that a problem?
Same goes for unifi-docker and tss-dhcpd.

Pure uid or gid collision wouldn't even happen…

There is a recommendation to avoid gid-uid collisions in the file.

@lucabrunox
Copy link
Contributor

Ok then let's put an assert.

On Sat, Aug 23, 2014 at 12:43 PM, Michael Raskin notifications@github.com
wrote:

gitolite is a user while firebird is a group, though having the same id.
Is that a problem?
Same goes for unifi-docker and tss-dhcpd.

Pure uid or gid collision wouldn't even happen…

There is a recommendation to avoid gid-uid collisions in the file.


Reply to this email directly or view it on GitHub
#3727 (comment).

www.debian.org - The Universal Operating System

@vcunat
Copy link
Member

vcunat commented Aug 23, 2014

We have "collisions" (same ID and different name) even on IDs 1, 2, 3, ...

What's the risk of these? If it's a problem, why don't we have a single list of IDs, used for both groups and users?

@edolstra
Copy link
Member

It's a policy that if there are users and groups with the same name, the uid should equal the gid. Hence the big fat warning in ids.nix:

# When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!

@domenkozar domenkozar added this to the 14.11 milestone Oct 22, 2014
@domenkozar
Copy link
Member

Is this issue resolved? Do we still need to put in the assert?

@domenkozar
Copy link
Member

Yeah, still an issue..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants