How to create a user with sudo privileges in Linux Debian 9

How to create a user with sudo privileges in Linux Debian 9

Login to the Linux Debian 9 Server
enter the following command:

sudo adduser username

To assign it a password:

sudo passwd username


Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Add the user the the sudo group:

sudo usermod -aG sudo username