Ubuntu Root Password Problems

Source: Internet
Author: User

Most people who are new to ubuntu (Base On Debian) are confused about the reason because the root password is not prompted during installation. According to the Ubuntu Chinese document, this article is summarized.

Keywords:

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

  • Sudo passwd Root

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

    Sudo passwd Root

    After you use it, block the root account from using it:

    Sudo passwd-l Root

    This will lock the root account.

     

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

  • Sudo-s-h
    Password: <indicate your password here> 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 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 unfamiliar with the Unix security model. (Matt zimuman)

    • It prevents "I can do anything" during the default logon.
      "
      -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 the root user, you can delete some "useless Folders"
      It's too late to realize that you are in the wrong directory. It's a long time in UNIX to use "Su-command-^ d" for practice, instead of staying in
      Root shell-unless you do serious system maintenance (then you can still use "sudo Su)

    • 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. (Andrew zbikoski)

    Security

    Compared with the traditional superuser model, this method has different advantages and disadvantages. Both of them do not always show good results.

    • When the root permission is encouraged to execute a separate command, sudo is better than opening a shell:
    • Reduces the total time spent on using root permissions, and reduces the risk of not paying attention to using root to execute commands
    • Provides useful review traces
    • There is a separate Root Password (traditional model) that provides an additional layer of protection when an administrator's password is compromised.
    • In any case, if the administrator (using sudo or su to become root) is attacked, attackers can generally obtain the root user through an indirect attack.
  • Sudo and
    Root
    Account-
    Ubuntu
    Chinese


    Root disabled by default
    The benefits include the following:
    The team wants to install as simple as possible. Do not use root
    ,
    The two user interaction steps during installation can be omitted. (Colin Watson). Further, if you use root
    ,
    Users will be asked to always remember their selected passwords
    -Even if they seldom use it....

    Www.Ubuntu
    .Org.cn/support/documentation/doc/sudoRoot


    Ubuntu Server Installation Process
    -Smile



    Ubuntu Server Installation Process
    /140. The original Article is from outside 8 hours:
    Http://oo8h.com/news_452.html. This is
    Installation Process
    . In
    Ubuntu
    On the Chinese official website [1]
    There are some relevant materials and guidelines, but it seems that there are not few coherent ones. At least I still cannot find the north for the first time, so...


    Www.oo8h.com/news_452.html




    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.