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

Uninstall failed to delete nixbld users

Open edolstra opened this issue 11 months ago • 1 comments

After running the Determinate installer's uninstall, the _nixbld* users still existed. (This causes attempts to run the upstream installer to fail, see https://github.com/NixOS/nix/issues/12343.)

For some reason, _nixbld* users are in an undeletable state:

ephemeraladmin@mac-epic-turducken ~ % sudo dscl . -rm /Users/_nixbld1  
<main> delete status: eDSPermissionError
<dscl_cmd> DS Error: -14120 (eDSPermissionError)

which may be why the uninstaller failed to get rid of them.

edolstra avatar Jan 24 '25 16:01 edolstra

We actually have a warning for this exact case: https://github.com/DeterminateSystems/nix-installer/blob/9c5542af59fc37deaa7d8815d6810330bdd16f4e/src/action/base/create_user.rs#L383

I don't think there's anything we can really do to fix this, unfortunately.

cole-h avatar Jan 24 '25 16:01 cole-h