Enable Ubunturoot account password maintenance

Source: Internet
Author: User
Article Title: Enable password maintenance for the Ubunturoot account. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

The Ubuntu root password must be learned and used by Ubuntu users. I will briefly describe the Ubuntu root password because many others will not use it. If it works, it depends on the character. The Ubuntu team makes a public commitment to its users: Ubuntu is always free and there is no additional fee for the "Enterprise Edition". In the same free team, bring the best work results to everyone.

How do I set/change/enable the password of the Ubuntu root user?

Sudo passwd root

To enable the Ubuntu root Account (that is, set a password:

Sudo passwd root

When you use Ubuntu root, disable it:

Sudo passwd-l root

This will lock the Ubuntu root account.

In terminal mode, how does one switch to the Ubuntu root identity?

Sudo-s-H

Password: <在这注明您的密码> The benefits of disabling root by default include.

At first, the Ubuntu team wanted the installation to be as simple as possible. Without root, the two user interaction steps during the installation can be omitted. (Colin Watson)

Furthermore, if Ubuntu root is used during installation, users will be asked to always remember their selected password? Even if they seldom use it, the Root password is often forgotten by users who are not familiar with the Unix security model. (Matt zimuman)

It prevents the default logon time from "I can do anything "? Before a major change occurs, you will be prompted to enter a password, which allows you to consider your results. if you log on as Ubuntu root, you can delete some "useless Folders" and do not realize that you are in the wrong directory. It was too late. it uses "su-command-^ D" for a long period of time in Unix, instead of staying in the root shell? Unless you do serious system maintenance (you can still use "sudo su" at that time). (Jim qita and Andrew sobara)

Sudo adds the log records for running commands (in/var/log/auth. log). If you are in trouble, you can always return and see the running commands.

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.