Ubuntu root User Password Problems

Source: Internet
Author: User
Today, we installed a Ubuntu virtual machine with a problem about the root user. During the installation process, I was not asked to set the root password, and I was prompted to enter the root password when using sudo or su. I entered the password of the first user and was rejected. The header is a little big. I installed Ubuntu again (the dual-core CPU can be installed with a virtual system while doing something else). I still didn't find any steps to set the root password. I played a clever trick and set the name of the first user to root. I actually passed the Ubuntu Virtual Machine Installed with it today and encountered a problem about the root user.

During the installation process, I was not asked to set the root password, and I was prompted to enter the root password when using sudo or su. I entered the password of the first user and was rejected. The header is a little big. I installed Ubuntu again (the dual-core CPU can be installed with a virtual system while doing something else). I still didn't find any steps to set the root password. I played a clever trick and set the name of the first user to root. I actually passed the installation steps. However, during the first login, Ubuntu prompts that the graphic system cannot be logged on as a root user! I fainted. At this time, I had no other users, and the system was white again.

I was forced to go to the Internet Room Baidu. By default, the original Ubuntu does not enable the root user. Reinstall Ubuntu according to the method found, log on to the first user, run sudo passwd root on the terminal, and set the root password. Execute su again and finally see.
Related Article

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.