set root password
This commit is contained in:
parent
1dd9135402
commit
8052c8f411
1 changed files with 4 additions and 2 deletions
|
@ -43,8 +43,10 @@ in
|
|||
efiSupport = false; # we created a ef02 partition because uefi is not supported on hetzner online machines.
|
||||
};
|
||||
|
||||
# Initial empty root password for easy login:
|
||||
users.users.root.initialHashedPassword = "";
|
||||
# root password
|
||||
clan.core.facts.services.rootPassword = factsGenerator.password { name = "root"; };
|
||||
users.users.root.hashedPasswordFile = config.clan.core.facts.services.rootPassword.secret."password.root.pam".path;
|
||||
|
||||
services.openssh.settings.PermitRootLogin = "prohibit-password";
|
||||
services.openssh.settings.PasswordAuthentication = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue