-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
root and user got locked #4955
Copy link
Copy link
Closed
Labels
6.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
Milestone
Metadata
Metadata
Assignees
Labels
6.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.
Problem: I must have upgraded something during today and at some point I could no longer sudo. I rebooted and couldn't log in. Checking /etc/shadow showed all accounts were locked with ! passwords.
Workaround: I rebooted into the NixOS live CD, mounted the partition, removed the 'x' from /etc/passwd for root (to disable pass encryption), found the passwd binary in the mounted Nix store and changed the password for root. This let me log in and change my user account.
Configuration: I had
users.mutableUsers = falsewhich I think was recently changed (I've now flipped this in my config, to ensure this doesn't happen in the future) and I'm using NixOS unstable which I built some time today (11/11/2014)