In Ubuntu, no password is set for the root user by default. Instead, we need to use the sudo command to perform operations that require root authority, and use your own user account password for authentication. This method can improve the security of the system, because it limits the direct access to the root user. If you must access the root user, you can use the following command to create a temporary password:
sudo passwd root
Then, enter your user account password and the new password you want to set for root. Note that it is recommended that we use the root user as little as possible and only use it when necessary to perform specific tasks.
PS: If we set the Ubuntu image when using the server, the ROOT password is set when we install the system. At the same time, sometimes it is not the root user by default, but other users. You need to delegate the highest authority to the root user.
Scan the code to follow the official account
Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge