If you are familiar with windows, you will think that it is very easy to execute every operation, but this is not the case after installing linux. you may think that you have logged on with the user name and password you set in advance after installing linux, you are the administrator, but you need to perform any operations like normal users...
If you are familiar with windows, you will think that it is very easy to execute every operation, but this is not the case after installing linux. you may think that you have logged on with the user name and password you set in advance after installing linux, you are the administrator, but you have to enter a password for any operation like a common user. This is a major feature of linux, with high security.
$ Normal user
# Root user
The root user is a unique super administrator in the system (equivalent to the highest privilege of the system in windows), and the common user needs the ROOT permission in related operations. Root users can have all system permissions.
For example, a common user mutou
1. allow su to root
It is very simple. The following is the setting method: sudo passwd
Password: <--- enter the Password of the user during installation
Enter new UNIX password: <--- new Root user password
Retype new UNIX password: <--- repeat the new Root user password
Passwd: The password is successfully updated.
2. switch to the root user and run the su (switch user) command.
Enter the su root command.
Mutou @ mutou-desktop :~ $ Su root
Enter the root user password
Password:
Root @ mutou-desktop:/home/mutou #
3. use the sudo command
Sudo is followed by a command
Enter the current user password to run the command as the root user temporarily (provided that the sudoer list contains your ID)
For example, sudo apt-get install dropbox
What is this article ?" Blog