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"