The root account is disabled when you first install Ubuntu. The first
user created during the installation has administrative rights on the
system, and can run programs as root with sudo, using only their normal
user password. For example: sudo apt-get update.
If you wish to use the root account in more traditional UNIX fashion,
you can set the root password by typing sudo passwd root. This will
allow you to use su or login as root on the console.
If you need a shell with root privileges, run sudo -s.
All uses of sudo will require the user's password.
sudo passwd root
then enter your password.
在初次安装Ubuntu时,系统默认禁用了root账户。通过创建第一个用户并使用sudo命令,用户可以以管理员权限运行程序。若需以传统UNIX方式使用root账户,可通过typing `sudo passwd root`设置root密码,从而允许使用su或直接登录到控制台。使用sudo前运行`sudo-s`可获取shell权限。
3583

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



