From 9157b72c40913385c0d41cfc3e9ae0e4e4fbac55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20Hamb=C3=BCchen?= Date: Wed, 29 May 2024 03:12:28 +0000 Subject: [PATCH] turbovnc.tests: Don't override already-empty password to empty (cherry picked from commit cd519b610143de0d38c834c92c1c830648d4cb1a) --- nixos/tests/turbovnc-headless-server.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/tests/turbovnc-headless-server.nix b/nixos/tests/turbovnc-headless-server.nix index 44c4dcbc4fc8..dcb4848592d5 100644 --- a/nixos/tests/turbovnc-headless-server.nix +++ b/nixos/tests/turbovnc-headless-server.nix @@ -26,9 +26,8 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: { # So that we can ssh into the VM, see e.g. # http://blog.patapon.info/nixos-local-vm/#accessing-the-vm-with-ssh services.openssh.enable = true; - users.extraUsers.root.password = ""; - users.extraUsers.root.hashedPasswordFile = null; # avoids ambiguity warning during eval (`test-instrumentation.nix` sets it) users.mutableUsers = false; + # `test-instrumentation.nix` already sets an empty root password. # The following have to all be set to allow an empty SSH login password. services.openssh.settings.PermitRootLogin = "yes"; services.openssh.settings.PermitEmptyPasswords = "yes";