Solution for xxxisnotinthesudoersfile in Ubuntu

Source: Internet
Author: User
In Ubuntu, xxxisnotinthesudoersfile appears. Solution: 1) First, use a sudo user to open the command line. 2) in/etc/sudoers. d directory to create a sudo_user_list file sudovi/etc/sudoers. d/sudo_user_list3) Add the following line to the preceding files, save and exit xxxALL = (ALL) ALL4

In Ubuntu, xxx is not in the sudoers file. solution:

1) First, use a sudo user to open the command line.

2) create a sudo_user_list file in the/etc/sudoers. d directory.

Sudo vi/etc/sudoers. d/sudo_user_list

3) Add the following line to the preceding files, save and exit

Xxx ALL = (ALL) ALL

4) use the following line to change the file access permission.

Sudo chmod 0440/etc/sudoers. d/sudo_user_list

Here we can try to switch to the root user :-)

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.