Adding users to sudoers list in Debian/Ubuntu

When setting up a new system, or adding new user accounts. You may find that you receive this message when using the sudo command.

username not in the sudoers file. This incident will be reported.

There is a simple solution. We must add the user account to the sudoers file.

Note: You must be logged into the root account, or already have sudo access to run this command.

Open up Terminal or SSH and type:

sudo adduser username sudo

Replace username with the account that you would like to have sudo access.

The account should now has sudo access.