Add user to sudo in Debian

To assign a user to the sudo group in Debian, you can use the usermod command. This command modifies the system account files to reflect the changes that are specified on the command line.

usermod -aG sudo username