H2S Forum

In Debian 10 add user to sudoers

To add any existing or new user to Sudo group in Debian Linux simply follow the below commands:

usermod -aG sudo username

Replace username in the above command with your username of Debian which you want to add into root group.

After adding to confirm whether the user is in Sudoers group or not.

First switch to that particular user

The command is

su username

After that run this one:

sudo whoami