How Ubuntu switches to the root account

Source: Internet
Author: User
Tags switches

Root account problem

Ubuntu disabled the root account by default, so when attempting to switch to the root user using the SU root command, even though you have entered the correct password, the terminal will still prompt you for the wrong password. You need to execute the following command to unlock the root account

1. Open terminal (Dash Search terminal), enter sudo passwd root, enter your root password after carriage return

2. System prompts enter new UNIX password: Please enter your new password, return

3. The system prompts retype new UNIX password: Enter the password you just entered, enter

4. When prompted Passwd:password updated successfully, prove that your root has been unlocked, and later, if you want to get root privileges, just do the following:
Su Root
Password: (Enter the password you set above here)

5. If you want to disable the root account again, you can execute sudo passwd-l root

How Ubuntu switches to the root account

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.