Add ROOT to Ubuntu OS

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.