The user is isn't in the sudoers file. This incident would be reported solution

Source: Internet
Author: User
Tags chmod file permissions
Ubuntu version, executes the sudo command prompt under the general user, the user is isn't in the sudoers file. This incident would be reported. Solution:
First, $where is sudoers-Find the location of the file, the default is/etc/sudoers

Second, #chmod U+w/etc/sudoers to the Super User login su-root, modify file permissions that add files have the Write permission limit, ls-al/etc/sudoers can view the original file permissions.

Vim/etc/sudoers edit the file and add the xxx all= (All) all,xxx to your username under root all= (All). Add method: Locate root row, press "I" key to enter edit mode to add. After editing the ESC key into the general mode, ": w!", ": q!" Save exit.
Finally, #chmod U-w/etc/sudoers back to the original permissions of the file.

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.