Many people like to use Ubuntu, a purebred Linux system. Of course, contacting new things has a bright and admiring side, and when your eyes are darkened and your face is dumbfounded, one of the minor troubles is that new users cannot use the sudo command.
Let's take a peek at the appearance of Ubuntu:
Use the command "sudo adduser Michael" to easily create a new user Michael. But the newly created user cannot use sudo. Here you can check the /etc/group file:
The system file /etc/group saves all user group information. As can be seen from the execution result of the above command, sudo is actually a user group! The current sudo user group only contains the vincent user, not Michael, which means that vincent can use sudo but Michael cannot. Then we want to let the new user Michael use the sudo command, just let him join the sudo user group, think about it a little bit excited, give it a try:
Sure enough, after Michael joined the sudo user group, he can use the sudo command happily, let me go! In an instant, I felt that I was one step closer to the peak of my life.
Recommended Posts