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

Check that user and group names are unique #680

Open
adombeck opened this issue Dec 5, 2024 · 0 comments
Open

Check that user and group names are unique #680

adombeck opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working jira

Comments

@adombeck
Copy link
Contributor

adombeck commented Dec 5, 2024

Unix user and group names must be unique on the system. For example, /etc/group assigns users to groups by name, not by UID. Duplicate group names would lead to unexpected behavior of getgrnam and tools like chown.

We currently don't check if a user name is used by any other user on the system (that's not in our database).

For group names, we could even have multiple groups with different GIDs but same names in our database, as the test case added in 7017636 demonstrates.

@adombeck adombeck added bug Something isn't working jira labels Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jira
Projects
None yet
Development

No branches or pull requests

1 participant