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