Note: During Ubuntu installation, you are not prompted to set the root password, and you must create a common account to install it before continuing. The following is a reminder to enable the root account in Ubuntu and set the password system O & M www.osyunwei.com: qihang01 original content & copy; All Rights Reserved. For more information, see the source and original link and log on to the sudopasswd system as a normal account.
Note:
During the installation process, Ubuntu does not prompt to set the root password, and you must create a common account for installation to continue.
The following describes how to enable the root account and set the password in Ubuntu.
System O & M www.osyunwei.com reminder: qihang01 original content©All rights reserved. For more information, see the source and original link.
Log on to the system with a common account
Sudo passwd root # enable the root account and set the password. Enter the password twice as prompted.
Su root # switch from a common user to a root user and enter the root password as prompted
Sudo passwd-l root # disable the root account. If you want to enable it, enter sudo passwd root to set the root password again.