Solve the Problem of Ubuntu root account and Ubuntu root Account

Source: Internet
Author: User

Solve the Problem of Ubuntu root account and Ubuntu root Account

Question: In Linux, many operations require administrator privilege. Without the root permission, even basic file copy operations can only be performed in the user folder. For Ubuntu systems, the root account is not set during installation, how can I access the root account of the Ubuntu system?

 

Solution:

1. Open the terminal in the normal account environment:

 

2. Enter the command: sudo passwd root:

 

3. Enter the current account password. After entering all the passwords, press Enter:

 

4. Set the password of the Root account and enter both sides consecutively. The setting is successful.

 

5. Switch accounts

 

6. Use the root account to log on

 

7. log on successfully. You can perform advanced operations at this time.

 

Note: This type of problem exists in the Ubuntu system. For Linux of other distributions, you can set the system administrator account during installation. You can switch the account directly.


Ubuntu root password settings: How can I change the root password of a created default account by running the sudo passwd root command?

.... Ubuntu allows you to use a user created by yourself. It is not recommended to log on as a root user because it is not secure. It would be easy to solve this problem. Just drop your user permissions. After logging on with root, you can remove the permission of your user to execute the sudo command in the/bin/sudo attribute.

Problems with ubuntu root users

Are there other hard disks on the machine?

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.