From bf6422a69e5117190a90ac5d6d7e52ed83f8e1dc Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Tue, 5 Sep 2023 12:44:05 +0500 Subject: [PATCH] Adding user control, disabling root --- basic_configs/debian-hetzner-init | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/basic_configs/debian-hetzner-init b/basic_configs/debian-hetzner-init index d3c59e7..40d466d 100644 --- a/basic_configs/debian-hetzner-init +++ b/basic_configs/debian-hetzner-init @@ -1,5 +1,14 @@ #cloud-config # vim: syntax=yaml + +users: + - name: ${TARGET_USERNAME} + - sudo: ALL=ALL + - lock_passwd: true + - ssh_authorized_keys: + - ${SSH_PUB_KEY} +disable_root: true + packages: - ufw - nginx