1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00
nixpkgs/nixos/modules
Lily Foster bfa0bff644 nixos/update-users-groups: let hashedPassword take precedence over initialHashedPassword
Without this change, users that have both `initialHashedPassword` and
`hashedPassword` set will have `initialHashedPassword` take precedence,
but only for the first time `/etc/passwd` is generated. After that,
`hashedPassword` takes precedence. This is surprising behavior as it
would generally be expected for `hashedPassword` to win if both are set.

This wouldn't be a noticeable problem (and an assert could just be made
instead) if the users-groups module did not default the
`root.intialHashedPassword` value to `!`, to prevent login by default.
That means that users who set `root.hashedPassword` and use an ephemeral
rootfs (i.e. `/etc/passwd` is created every boot) are not able to log in
to the root account by default, unless they switch to a new generation
during the same boot (i.e. `/etc/passwd` already exists and
`hashedPassword` is used instead of `initialHashedPassword`) or they set
`root.initialHashedPassword = null` (which is unintuitive and seems
redundant).
2023-02-25 14:27:35 -05:00
..
config nixos/update-users-groups: let hashedPassword take precedence over initialHashedPassword 2023-02-25 14:27:35 -05:00
hardware Merge pull request #217718 from Kiskae/nvidia/unbreak-6.2 2023-02-24 17:46:26 -03:00
i18n/input-method nixos/manual: render module chapters with nixos-render-docs 2023-01-27 20:07:34 +01:00
installer Merge pull request #192672 from amjoseph-nixpkgs/pr/nixos/sd/powerpc64le 2023-02-23 07:09:46 +02:00
misc nixos/polkit: set static gid for polkituser 2023-02-22 08:46:55 +08:00
profiles Merge pull request #208956 from SuperSandro2000/profile-base-tcpdump 2023-01-17 01:20:31 +01:00
programs flashrom: use a udev uaccess tag instead of introducing a custom flashrom group 2023-02-17 15:56:51 +01:00
security nixos/polkit: set static gid for polkituser 2023-02-22 08:46:55 +08:00
services Merge pull request #201780 from helsinki-systems/init/nextcloud-notify-push 2023-02-24 12:10:02 +01:00
system Merge pull request #215381 from lilyinstarlight/fix/make-initrd-ng-wrapped-executables 2023-02-20 14:11:48 -05:00
tasks nixos/envfs: add extraFallbackPathCommands options 2023-02-08 15:52:38 +01:00
testing Merge pull request #207801 from ElvishJerricco/systemd-stage-1-test-instrumentation 2022-12-28 01:43:03 +01:00
virtualisation nixos/nixos-containers: add specialArgs option (#216677) 2023-02-19 21:25:04 +01:00
module-list.nix Merge pull request #201780 from helsinki-systems/init/nextcloud-notify-push 2023-02-24 12:10:02 +01:00
rename.nix Merge pull request #210477 from wineee/deepin-lib 2023-01-26 21:56:17 +08:00