In Fedora Linux, "xxx is not in the sudoers file", fedorasudoers
Problem description:
To execute some operations in Fedora, you need to use the root permission. When using the command:
Sudo
If you want to temporarily obtain the root permission in a common user, you are prompted:
"Xxx is not in the sudoers file. The incident will be reported ."
Note: "xxx" is the user name of a common user.
Solution:
Input:
Su
Enter the root password and switch to the root user.
Input:
Mongodo
Note: There is no space between "vi" and "sudo.
Move the cursor to find:
"Root ALL = (ALL) ALL"
Place the cursor in this line, and press the "o" key to insert a blank line under this line. Enter:
"Xxx ALL = (ALL) ALL"
Note: "xxx" is the user name of a common user.
Save and exit.
Enter:
Sudo chmod 440/etc/sudoers
Change "sudoers" permission to 440.
This problem is now resolved.