NIXOS-66: visudo check needs a /etc/passwd
When doing a fresh installation from CD, people get
“visudo: you don’t exist in the passwd database”
in the build of the sudoers file in /etc/nixos/nixos/etc/default.nix. This is probably because /etc/passwd hasn’t been initialised yet.
Fix:
Submitted on 10 October 2007 at 15:40
- remove the check from visudo (risky, but shouldn’t really matter)
- initialise /etc/passwd (taking care not to mess up existing accounts)
Log in to post comments