Linux: Add User to Sudoers Group
To add a user (assume the user is called “luke”) to the sudo group on debian 11, type the following commands:
lonewanderer@debian:~su -
Enter your root password.
root@debian:~usermod -aG sudo luke
Verify the user has been added:
root@debian:~getent group sudo
