The User ‘username’ Is Not Listed in Sudoer File on Debian

You cannot use ‘sudo’ for executing commands that requires root access unless your username is listed in the sudoer file. After a fresh installation of Debian, you have to add your username to the sudo group to make ‘sudo’ works.
You can do that simply by executing the following command in terminal window:

sudo adduser username sudo

Replace username in the above command with your username.
After executing the command, log out and log in back to make ‘sudo’ works for that username.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s