Search

User is not in the sudoers file. This incident will be reported

On using the sudo command if we see the error



This means that the user as whom we have logged in and are trying to run the command "sudo" does not have the permission to do so.
Only the users listed in /etc/sudoers have the permission to use the command "sudo".
To give the sudo permission to a user we need to add the user to the file /etc/sudoers file.
Open the file /etc/sudoers as root.



Add the line



under the User privilege specification section.
Save the file and exit, now the sudo command should work for the user which was added in the file.

Follow by Email