As default Ubuntu has no password set for the root user. To gain root access you have to type in your own user password. This is the password you set for the first user while installing Ubuntu.
To manually set a password for the root user, type in the following in the shell:
sudo passwd
After that you are asked to type in the new root password twice. Finally, your root user has its own password.
本文介绍如何在默认未设置密码的Ubuntu系统中为根用户手动设置密码。通过使用sudo命令和passwd工具,用户可以轻松地为root账户设置独立的密码。
1901

被折叠的 条评论
为什么被折叠?



