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

Uninstall failed to delete nixbld users #1399

Open
edolstra opened this issue Jan 24, 2025 · 1 comment
Open

Uninstall failed to delete nixbld users #1399

edolstra opened this issue Jan 24, 2025 · 1 comment
Labels
bug Something isn't working MacOS Darwin/MacOS

Comments

@edolstra
Copy link
Contributor

After running the Determinate installer's uninstall, the _nixbld* users still existed. (This causes attempts to run the upstream installer to fail, see NixOS/nix#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 edolstra added bug Something isn't working MacOS Darwin/MacOS labels Jan 24, 2025
@cole-h
Copy link
Member

cole-h commented Jan 24, 2025

We actually have a warning for this exact case:

tracing::warn!("Encountered an exit code 40 with -14120 error while removing user, this is likely because the initial executing user did not have a secure token, or that there was no graphical login session. To delete the user, log in graphically, then run `/usr/bin/dscl . -delete /Users/{}`", name);

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working MacOS Darwin/MacOS
Projects
None yet
Development

No branches or pull requests

2 participants