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账户。首次安装Ubuntu时,Root账户默认为禁用状态,可以通过创建的第一个用户账户使用sudo命令来执行管理员权限的操作。如果希望以传统UNIX方式使用Root账户,则可以设置Root密码,通过su命令或者直接登录到控制台。
3528

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



