From 5a7c0b21fa4745f5464613998bbaddca2ddae3d8 Mon Sep 17 00:00:00 2001 From: kevinheyer Date: Wed, 9 Apr 2025 15:14:18 +0000 Subject: [PATCH] bootstrap.sh aktualisiert make sure /etc/sudoers.d exists --- bootstrap.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstrap.sh b/bootstrap.sh index c335f3f..26d90e1 100644 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -27,6 +27,7 @@ echo "[+] Adding user to sudo group..." usermod -aG sudo "$USERNAME" echo "[+] Configuring passwordless sudo for $USERNAME..." +mkdir -p /etc/sudoers.d echo "$USERNAME ALL=(ALL) NOPASSWD:ALL" > "/etc/sudoers.d/$USERNAME" chmod 440 "/etc/sudoers.d/$USERNAME"