The sudo problem of ubuntu16.04

Source: Internet
Author: User

Problem Description:

I created the test user through Useradd test and created the directory for that user through mkdir test, and then Chown-r test/home/test the directory and its subdirectory permissions to the test user.

I then switched to the user via the SU Test command, and installed the relevant software using the sudo apt-get install command, but reported the following information:

Test is not in the sudoers file.  This incident'll be reported

Of course, the execution of the command failed, not to achieve the effect that should occur.

It was found that ordinary users would have to add some content to the/etc/sudoers file if they wanted to have the sudo command right.

Steps to resolve the problem:

(1) First switch to root user execution chmod u+w/etc/sudoers add sudo file Write permission
(2) Edit sudoers file vim/etc/sudoers
(3) Add the following in/etc/sudoers:

Find this location:
# User Privilege Specification
Root all= (all:all) all (default exists)
Test all= (All:all) All (this is new)

This solves the problem of the test user installing the software using the sudo command.

About Linux, what beginners do not understand, you can refer to my Linux system learning related series of articles, can help you better learning and understanding.

Alternatively, you can refer to the Linux Novice tutorial: http://www.runoob.com/linux/linux-tutorial.html

When I first learned Linux, this tutorial gave me a lot of inspiration, and then saw the Wang June's "Linux system command and Shell Scripting Practice Guide" book. All in all, this tutorial and this book give me a lot of inspiration.

The former let me not so unfamiliar with Linux, dare to do. The latter gave me a systematic and enjoyable learning of Linux.

For the local window installation of VMware, you can refer to this URL: 53136474

This friend wrote quite full, as for VMware Key hack, online a lot of, my VMware workstationi10 is direct Baidu Search, then Baidu related key, directly copied over can use.

Then install CentOS or Ubuntu or Debian, and so on, we go directly to the official website to download the image, you can install rookie tutorials or other friends of the blog to reference all can.

The age of knowledge sharing, is how happy. We must cherish and when they have a certain capacity, with their own ability to inject new strength into the IT community.

The sudo problem of ubuntu16.04

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.