You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like install script doesn't check for UniqueID in multi-user mode
How to reproduce:
Create a user with UniqueID 30005.
Run curl https://nixos.org/nix/install | sh
You will get
...
~~> Setting up the build user nixbld1
Created: Yes
Hidden: Yes
Home Directory: /var/empty
Note: Nix build user 1
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 30000
...
~~> Setting up the build user nixbld4
Created: Yes
Hidden: Yes
Home Directory: /var/empty
Note: Nix build user 4
Logins Disabled: Yes
Member of nixbld: Yes
PrimaryGroupID: 30000
~~> Setting up the build user nixbld5
<main> attribute status: eDSRecordAlreadyExists
<dscl_cmd> DS Error: -14135 (eDSRecordAlreadyExists)
One might assume, that the problem lies in the fact, that user nixbld5 already exists. Which isn't the case. Problem exists, because other user has conflicting UniqueID, in my case it was failing on nixbld9. Compare it with $ dscl . -list /Users UniqueID output:
nixbld1 30001
nixbld2 30002
nixbld3 30003
nixbld4 30004
nixbld5 30005
nixbld6 30006
nixbld7 30007
nixbld8 30008
nobody -2
prey 30009 <----- user created by different tool
root 0
singles 501
Looks like install script doesn't check for UniqueID in multi-user mode
How to reproduce:
30005
.curl https://nixos.org/nix/install | sh
One might assume, that the problem lies in the fact, that user
nixbld5
already exists. Which isn't the case. Problem exists, because other user has conflicting UniqueID, in my case it was failing onnixbld9
. Compare it with$ dscl . -list /Users UniqueID
output:Debugged with help of @periklis.
The text was updated successfully, but these errors were encountered: