Add user to sudo

Note

Maybe you've come to this note because sudo is not found.
By default sudo is not installed on Debian, but you can install it with:

su -
apt install sudo

Add to sudo group

su -
usermod -aG sudo USERNAME

Edit the sudoers file

  1. Run visudo
  2. And then add:
USERNAME  ALL=(ALL) NOPASSWD:ALL

Relevant Note(s): Linux Basics