-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
NixOS doesn't detect UID/GID collisions #112647
Copy link
Copy link
Closed
Labels
0.kind: bugSomething is brokenSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOSIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Metadata
Metadata
Assignees
Labels
0.kind: bugSomething is brokenSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.mdhttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOSIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
NixOS rolls a dice on system service user IDs.
This caused a very weird bug on my nextcloud deployment: #112640
The issue was, in short, that the
nextclouduser got an UID (1001) which I assigned to a new user later on.This resulted, after a reboot, that the
phpfpm-nextcloud.servicewas started as user (bob) and nothing worked.The fix felt like digging in mud, coming from the clean and shiny world of NixOS.
But, maybe not so shiny: I blame nixos here.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
User IDs MUST be hardcoded by the administrator / author of configuration.nix
I know that there are predefined UIDs, but for some services there are not (and redis even got removed!). Apparently, this would have prevented the issue.
Also, a hard fail when I first tried to add the new user would have prevented that from happening.
The title of this issue might be a bit misleading. Feel free to suggest something better.