sudoers linux sudoers for current user with su cat << EOF > /etc/sudoers.d/sudoers-$USER $USER ALL=(ALL) NOPASSWD: ALL EOF for current user with sudo su cat << EOF > /etc/sudoers.d/sudoers-$SUDO_USER $SUDO_USER ALL=(ALL) NOPASSWD: ALL EOF