debian adding user to sudoers code example
Example 1: add user to sudoers debian
usermod -aG sudo username
Example 2: add user to sudoers
echo "username ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/username
usermod -aG sudo username
echo "username ALL=(ALL) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/username