Username is not in the sudoers file this incident will be reported

Published in , ,

On

Username is not in the sudoers file this incident will be reported, it is a common error message when a non sudo user tried to make some sudo command.

To fix this you need to grant the user sudo privilage.

Linux

Follow the below steps to add user to sudoers file easily.

First switch to root user.

su -

Add user to sudoers file.

usermod -aG sudo username

Now logout from root using exit or logout command and login back to normal user (that username) account and try to execute sudo commands from your username.

If encounter -bash: sudo: command not found issue then follow this guide:

Most of the time when you install your Linux distribution or flavor from net install or mini ISO file, many packages are not installed so you need to install sudo also.

Leave a Reply

Your email address will not be published. Required fields are marked *