In Fedora Linux, "xxx is not in the sudoers file", fedorasudoers

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.