Linux basics (root privileges in Ubuntu)

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

Linux basics (root privileges in Ubuntu)
Linux (ubuntu 12.04)
Linux basics (Ubuntu copy and paste)
How to open root account in Ubuntu20.04
Install mysql-pytho in Ubuntu
Nagios3 in ubuntu serve
Use supervisor in ubuntu
The difference between CentOS and Ubuntu in Linux system
Ubuntu Linux study notes
Install python in Ubuntu
Install JDK in Ubuntu19.10
Resolve the problems encountered in the linux environment under ubuntu
How to map shared disk to window in linux under Ubuntu
Install VMware Tools in Ubuntu 18.04
2.5 Linux (Ubuntu18.04) install database PostgreSQL
Use of Anaconda in Ubuntu
CentOS7/Redhat7 cracking Root password (linux)
Ubuntu 16.04 cannot switch root permissions
Core dump debugging in ubuntu
ubuntu root default password (initial password)