[Linux] Ubuntu Default Root Password

Source: Internet
Author: User

the root password is not set when Ubuntu 12.04 is installed, the root account is not used during logon. When we use the root permission, we generally use the sudo command. So when we have installed Ubuntu 12.04, what is the default password for the root account?


the answer is simple: the root account has no password.

Therefore, if you want to change the root password, the following steps will show you how to do this.


We need to open the terminal first,

Note: The password entered during sudo execution is your current user password, not the root password. In addition, make sure that your users have such permissions. The configuration file is in/etc/sudoers.


Create a password for the root user:Sudo passwd Root(Or sudo passwd) # enter the root password as prompted. the root password should be different from the password of other users, otherwise it will cause some trouble.


Run the su root command and enter the new password.

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.