diff --git a/post-install.sh b/post-install.sh index 783b814..639ff92 100755 --- a/post-install.sh +++ b/post-install.sh @@ -80,6 +80,11 @@ chmod 700 /home/${ALMA_USER}/.ssh chmod 600 /home/${ALMA_USER}/.ssh/authorized_keys chown -R ${ALMA_USER}:${ALMA_USER} /home/${ALMA_USER}/.ssh +# Configure passwordless sudo +echo "[+] Configuring passwordless sudo for ${ALMA_USER}..." +echo "${ALMA_USER} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/99-${ALMA_USER} +chmod 440 /etc/sudoers.d/99-${ALMA_USER} + # Install oh-my-zsh and powerlevel10k echo "[+] Installing oh-my-zsh and powerlevel10k..." # Download and run oh-my-zsh installer as the user with proper environment