Modify the default root user password in Ubuntu

Source: Internet
Author: User
What is the default root user password for the newly installed Ubuntu system? How do I change it?

Title, I believe many newcomers to the Ubuntu system will encounter this problem, so how can we solve this problem? Ubuntu did not let us set the root user password during the installation process, but when we need to get the root user's permission, we will enter the root user's password, for example,

That made us confused. When we installed the system just set up a user name and user's password, and did not set the root user password Ah, how to input it? You may be holding a trial mentality, enter the user's password you created, the result of course, the password is wrong!!!

  • Cause: Before setting, the default root password in Ubuntu is random, that is, each boot will have a new root password, so the root password is not determined at this time;
  • WORKAROUND: Open the terminal in Ubuntu (Ctrl + ALT + T), enter sudo passwd , such as, and then repeat twice you want to set the root password, and then will prompt the password has been updated;

  • Test whether the settings are successful: console input su root , and then enter the root password just set, test whether the modification succeeds, as shown in success;

At this point, the problem is solved, both to solve your root user password doubts, but also let you master the method to modify the root password.

Modify the default root user password in Ubuntu

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.