Add or remove user sudo privileges

These commands assume the username you want to manipulate is joe.

Note that adding sudo privileges gives them full control over the PC to install anything including rootkits and malware.

  • Add user to sudo: adduser joe sudo
  • Remove user from sudo: deluser joe sudo
  • List users with sudo: getent group sudo