When attempting to perform certain operations using the sudo command on my Fedora installation, I receive the error message saying
isaac is not in the sudoers file. This incident will be reported.
Here’s how you can fix it.
- Log into the root account.
#su - Once in the root account, edit the
sudoersfile.
$pico /etc/sudoers - Look for the line that looks something like
root ALL=(ALL) ALL - Underneath that line, add your username (in my case, isaac).
isaac ALL=(ALL) ALL - Ultimately, your
sudoersfile should look something like this
root ALL=(ALL) ALL
isaac ALL=(ALL) ALL
Note: The sudoers file is a security measure that prevents normal users from executing commands that may harm the system. Use this with great caution.