1: When the virtual machine installed, the installation of the Ubuntu operating system, when the login found in addition to their own settings of the user is a foreign user, in fact, the root account in Ubuntu is disabled by default, so the landing time without this account, However, it can be cumbersome to switch between root, so the following is the setup of the root account.
(due to the process of forgetting, but for the convenience of everyone's operation, this figure is not done by itself, hereby declare)
2: First
Open terminal to start the root account: sudo passwd-u root
Enter the current user's password (that is, you set the password for your account)
And then
To set a password for the root account: sudo passwd root
Set root password, enter two times
and then
Test root account: Su-
Enter the root password to enter the root terminal
and then
Root account is successfully opened, exit the root account
3: Now start setting up the root account, reopen the terminal, under your own account, and then
Input sudo gedit/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
Enter the above sentence, open the following text directly, and then
Enter this sentence in the third line of this text greeter-show-manual-login=true
Then save click Save and then close.
After closing, go back to the terminal window and enter: sudo passwd root return;
After the carriage return will ask you to enter two times the password, appears successfully updated the password word is successful.
After the last shutdown reboot, you can log in with root privileges.
Log in should be the second first input root, and then enter the password you set it. (Note that NUM LOCK digital lock problem, re-login Ubuntu equivalent to the digital lock is closed, you need to manually click on it)
Add ROOT to Ubuntu OS