How to fix and solve “is not in the sudoers file. This incident will be reported.” error on Fedora RHEL CentOS Debian
When you try to run any command with sudo in Fedora, RHEL, CentOS or Debian and some other linux distro, then you will get below error.
USERNAME is not in the sudoers file. This incident will be reported.
Here USERNAME is your current active logged in username. Here my system username is “manikandan” and my error message,
manikandan is not in the sudoers file. This incident will be reported.
In Fedora, RHEL, CentOS or Debian and some other Linux distributions by default the regular user does not have an ability to execute commands with root privileges. In linux there are two common ways to execute commands as the root administrator privileges. You can do this by “su” and “sudo” commands. Here you can use the su with your root password. Like “su root”. But this is a not a good practice. But you can use the sudo command with your own user password. This can only be used by users who have been authorized by the administrator (root user). Using this you can access the system without sharing the password of the root user.