nix-installer icon indicating copy to clipboard operation
nix-installer copied to clipboard

stderr: useradd: UID 30011 is not unique

Open osalbahr opened this issue 1 year ago • 1 comments
trafficstars

Is there a reason 30000 is hardcoded?


Error

Error: 
   0: Install failure
   1: Error executing action
   2: Action `create_users_and_group` errored
   3: Action `create_user` errored
   4: Failed to execute command with status 4 `"useradd" "--home-dir" "/var/empty" "--comment" "Nix build user 11" "--gid" "30000" "--groups" "30000" "--no-user-group" "--system" "--shell" "/sbin/nologin" "--uid" "30011" "--password" "!" "nixbld11"`, stdout: 
      stderr: useradd: UID 30011 is not unique


Metadata

key value
version 0.15.1
os linux
arch x86_64

osalbahr avatar Dec 13 '23 07:12 osalbahr

30000 is what the official install scripts use, and we generally match them. We should address this by checking UID as well as suggested in #842

Hoverbear avatar Feb 09 '24 20:02 Hoverbear