Enable root account and modify password (copied) under Ubuntu

Source: Internet
Author: User
enable root account and password change under Ubuntu
[Date: 2008-01-29] Source: Linux Commune author: Linux [Font: big medium Small]

Quote: http://www.linuxidc.com/Linux/2008-01/10882.htm

Ubuntu is a Debian based Linux system that pursues "Just Work", with the latest version 7.10 released in October 2007, and all versions of Ubuntu are free, including the enterprise version, unlike other Linux distributions.

The first time you install Ubuntu, it turns out that the "odd" thing is that, during the installation process, unlike other releases, the root password is not required and cannot be logged in as root. After going online to find out: Ubuntu By default is to close the root account, this has the following advantages:

At first, the Ubuntu team wanted to install as simple as possible without using root, and the two user interaction steps during installation could be omitted. (Colin Wossen)

Further, if you use root in the installation, users will be asked to remember their chosen password forever-even if they rarely use it. The root password is often forgotten by users unfamiliar with the UNIX security model. (Matt Zimmerman)

It prevents "I can do anything" with the default login-you will be prompted to enter the password before a larger change occurs, which will allow you to consider the outcome of your doing so. If you log in as root, you can delete some "useless folders" and don't realize you're in the wrong directory, it's too late. It is a long time to use the "su-command-^d" practice under Unix instead of staying in root shell--unless you do serious system maintenance (you can still use "sudo su"). (Jim Chittam and Andrew Sobara)

Sudo adds a log record of the running command (in/var/log/auth.log). If you get into trouble, you can always go back and see the commands that are running. (Andrew · Zbikowski)

To open the root account method:

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

sudo passwd root

When you have finished using the Mask root account use:

sudo passwd-l root

This will lock the root account.

How to switch to root status in terminal mode.

Sudo-s-H

Password: < Enter 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.