bootstrap.sh aktualisiert
make sure /etc/sudoers.d exists
This commit is contained in:
parent
ad8fa2abc8
commit
5a7c0b21fa
1 changed files with 1 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue