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. ubuntu默认root密码为空,启动时grub菜单里进revoer 模式,然后可以用passwd root命令给root设密码。
ubuntu默认root密码以及初始密码设置
最新推荐文章于 2024-06-05 16:18:08 发布