Chinaunix首页 | 论坛 | 博客
  • 博客访问: 689329
  • 博文数量: 194
  • 博客积分: 3831
  • 博客等级: 中校
  • 技术积分: 1843
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-28 13:24
文章分类

全部博文(194)

文章存档

2012年(41)

2011年(42)

2010年(45)

2009年(66)

分类: LINUX

2010-03-21 22:22:23

    根用户密码丢失但还记得用户密码时,重设根用户密码的方法:
在终端输入: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) |
给主人留下些什么吧!~~