2009-12-23, Wed

User is not in the sudoers file

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.

  1. Log into the root account.
    #su
  2. Once in the root account, edit the sudoers file.
    $pico /etc/sudoers
  3. Look for the line that looks something like
    root ALL=(ALL) ALL
  4. Underneath that line, add your username (in my case, isaac).
    isaac ALL=(ALL) ALL
  5. Ultimately, your sudoers file 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.

Isaac Su

tags: administration centos fedora linux pico redhat sudo sudoers ubuntu

---

Comment

Commenting is closed for this article.

---