|
  
|
About ubuntu root password
How do I set / change / enable root user's password?
sudo passwd root
In order to enable root account (that is, to set up a password) using:
sudo passwd root
When you use the root account after the use of shielding:
sudo passwd-l root
The root account will be locked.
How to switch to terminal mode root identity?
sudo-s-H
Password: <in this annotated your password> default root prohibit benefits include the following content.
Initially, the team hopes Ubuntu easy to install as much as possible. Do not use root, in the installation of user interaction during the two steps can be omitted. (科林沃森)
Further, if the use of the installation root, the user will be asked to remember the password of their choice - even if they rarely used it. Root password is often on the Unix security model are not familiar with the user forget. (Matt Zimmer Cayman)
It prevents the default login "I can do anything" - in the larger changes happen, you will be prompted for a password, which allows you to consider the results of what you are doing. If you log in as root, you can delete some "useless folders" and do not realize that you are in the wrong directory, then it was too late. It was a long time Unix use "su-command-^ D" practice case, has been to replace stay root shell-unless you make serious system maintenance (then you can still use the "sudo su").
Sudo increased by running the command log records (in the / var / log / auth.log). If you're in trouble, you can always run back and see those orders. (Andrew Zbikowski)
Safe
With the traditional superuser model, this approach has different advantages and disadvantages, neither is always a good show.
Encourage the use of root privileges in the implementation of a separate command, sudo is better than open a shell:
To reduce the use of root privileges total consumption time, reduces the use of root orders pay no attention to the risk of
Provide a useful audit traces
Have a separate root password (traditional model) to provide a layer of extra protection, as if an administrator password has been infringed upon.
In any case, if the administrator (using sudo or su into root) has been violated, the attacker can generally be through a indirect attack to gain root |
|