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 >