Ubuntu root user default password and modification method

Source: Internet
Author: User

"ubuntu root user default password and modification method "

Many friends with Ubuntu, is generally installed after the Ubuntu system, immediately change the root password, then the root user's default password is how many, when forget the root user password how to find it, do not know the friend reference.

First, Ubuntu root user's default password

The default root password is random, which means that each boot has a new root password.

You can enter the command in the terminal sudo passwd, and then enter the current user's password, enter.

The terminal will prompt for a new password and confirm that the password is the root new password. After the successful modification, enter the command Su root, and then enter the new password is OK.

The following steps are simplified:

Set the password input command for root user sudo passwd, then the system will let you enter the password, then the password entered is the root user's password, after the setup is complete can switch root user login,

Second, the method of modifying the root user password under Ubuntu

( related reading: How to change the root password in Ubuntu, the common way for Ubuntu to modify the user's password)

Ubuntu root default password (initial password) setting method

When Ubuntu is installed, the root initial password (default password) is not known and needs to be set.

1, first use the installation time of the user login into the system

2. Input: sudo passwd press ENTER

3, enter a new password, re-enter the password, the last hint Passwd:password updated sucessfully

The root password setting has been completed at this time.

4. Input: su root

To switch users to root, you can log in with the new root password.

Third, Ubuntu forgot root user password recovery method

Method One, if the user has sudo permissions, then run the command directly:

#sudo su Root

#passwd

#更改密码

Or simply run the sudo passwd root command to change the root password directly.

: ~$ sudo su root
[sudo] password for www.xfcodes.com:
[Email protected]:/home/www.xfcodes.com# passwd

Enter a new UNIX password:

Re-enter the new UNIX password:

passwd: Password has been successfully updated

Ubuntu root user default password and modification method

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.