Changing the default Root Password of the Ubuntu

Source: Internet
Author: User
Keywords changing root password ubuntu ubuntu root password not changing ubuntu forget root password
1, Ubuntu
 The default root password is random, that is, there is a new root password every time you boot. We can enter the command sudo passwd in the terminal, and then enter the password of the current user,
 enter,
Simple Application Server
USD1.00 New User Coupon
* Only 3,000 coupons available.
* Each new user can only get one coupon(except users from distributors).
* The coupon is valid for 30 days from the date of receipt.

 2. The terminal will prompt us to enter a new password and confirm it. The password at this time is the new root password. After the modification is successful, enter the command su root, and then enter the new password.

 3. There is no default analysis, because you have not set a password for root, the first user is in the admin group, so he can set a password for root, so
 sudo passwd root
 [sudo] password for you :---> Enter your password, it will not be displayed

 Enter new UNIX password:

 ---> set root password
 Retype new UNIX password:

 --> Repeat
 ================================================= =======================

 Execute in Shell after logging in with the user created during installation
 sudo passwd root Enter Password:

 Then enter the user password just created and press Enter
 Enter new UNIX password:

 At this time, enter the root password to be set twice and you will see

 password updated successfully!
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.