根用户密码丢失但还记得用户密码时,重设根用户密码的方法:
在终端输入:sudo passwd root,然后输入用户密码进入设置阶段,输入新密码,确认新密码,即可。
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.
阅读(748) | 评论(0) | 转发(0) |