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.
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. AllowSuTo root
The setting method is as follows: sudoPasswd
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 use 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