bootstrap.sh aktualisiert

make sure /etc/sudoers.d exists
This commit is contained in:
kevinheyer 2025-04-09 15:14:18 +00:00
parent ad8fa2abc8
commit 5a7c0b21fa

View file

@ -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"