After ubuntu Desktop is installed, switch to the root user and set the root password.

Source: Internet
Author: User

After ubuntu Desktop is installed, switch to the root user and set the root password.

Solution 1,

After ubuntu Desktop is installed, switch to the root user:

:~ $ Sudo-s-H

Use the above command to switch to the root user

Run the following command under the root user:

:/# Passwd

Set the root user password

After modifying the root password of the ubuntu system through the above method, you can run the following command:

:~ $ Su root

Enter the root password to switch to the root user.

Solution 2,

This method is relatively simple for many online users.

After the ubuntu system is installed, run the following command to start the installation:

:~ $ Sudo passwd root

Then, the system prompts you to enter the password of the current user.

Then you will be prompted to enter a new UNIX Password.

After you enter the same password twice, a message is displayed, indicating that the password is successfully modified.

Then you can use

:~ $ Su root

Command to enter the root user

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.