Ubuntu Desktop system after installation switch to root user and set root password

Source: Internet
Author: User

Programme I,

Ubuntu Desktop system after installation switch to the root user method:

: ~$ sudo-s-H

Use the above command to switch to the root user

Under root user, use the following command:

:/# passwd

Set the root user's password

Modifying the root password of the Ubuntu system by using the above method can be done by the following command:

: ~$ su Root

Then enter the root password to switch users to the root user

Programme II,

This method on the Internet a lot of netizens are using this method is relatively simple

Users who have installed the Ubuntu system after installing it will use the following command:

: ~$ sudo passwd root

You will then be prompted to enter the current user's password

You will be prompted to enter a new UNIX password two times.

After entering the same password two times, you will be prompted to modify successfully

After that, you can use

: ~$ su Root

command to enter the root user



Ubuntu Desktop system after installation switch to root user and set root password

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.