楼主: ubuntu2011
收起左侧

[资料库] Ubuntu操作系统综合贴(最后编辑于2015-10-28)

  [复制链接]
屠神之殇
发表于 2013-6-17 08:13:09 | 显示全部楼层
好贴 回帖收藏
ubuntu2011
 楼主| 发表于 2013-6-22 17:03:58 | 显示全部楼层
小更新一下,自顶
peng85344558
发表于 2013-6-22 17:28:54 | 显示全部楼层
ubuntu2011 发表于 2013-6-22 17:03
小更新一下,自顶

常见问题-修改开机密码-里面用命令 passwd 用户名来修改密码
个人有经历过~~会出现找不到什么文件,需要多次输入passwd才可以。另外会出现修改后新旧密码都不认识的情况~~直接导致我重装了
ps:原来你还在啊~~白白浪费了我们的悼念
ubuntu2011
 楼主| 发表于 2013-6-22 17:45:47 | 显示全部楼层
peng85344558 发表于 2013-6-22 17:28
常见问题-修改开机密码-里面用命令 passwd 用户名来修改密码
个人有经历过~~会出现找不到什么文件,需要 ...

把这个帖子完善了就没我什么事了
ubuntu2011
 楼主| 发表于 2013-6-22 17:47:06 | 显示全部楼层
peng85344558 发表于 2013-6-22 17:28
常见问题-修改开机密码-里面用命令 passwd 用户名来修改密码
个人有经历过~~会出现找不到什么文件,需要 ...

修改密码用图形界面里系统设置就行了,何必用命令
peng85344558
发表于 2013-6-22 17:50:46 | 显示全部楼层
ubuntu2011 发表于 2013-6-22 17:47
修改密码用图形界面里系统设置就行了,何必用命令

都忘记密码了 怎么进图形界面去~~弄个sudo都不认识人了
ubuntu2011
 楼主| 发表于 2013-6-22 18:02:09 | 显示全部楼层
peng85344558 发表于 2013-6-22 17:50
都忘记密码了 怎么进图形界面去~~弄个sudo都不认识人了

我先试试再说
peng85344558
发表于 2013-6-22 18:03:31 | 显示全部楼层
ubuntu2011 发表于 2013-6-22 18:02
我先试试再说

多整几下 这个问题不常见
另外说下 你的帖子想完善是不可能的 我可以拖出几年操作的问题 哈哈~~
ubuntu2011
 楼主| 发表于 2013-6-22 18:54:23 | 显示全部楼层
peng85344558 发表于 2013-6-22 18:03
多整几下 这个问题不常见
另外说下 你的帖子想完善是不可能的 我可以拖出几年操作的问题 哈哈~~


ubuntu官方的文档
https://help.ubuntu.com/community/LostPassword

Lost Password?
Sometimes it is necessary to get root access, for example when you have forgotten your password or changed something in /etc/sudoers and things do not work as expected.

Warning /!\ Be careful, because this step will give you full root access to your system and you can really damage your system! Keep in mind that all the steps you see here can also be done by someone else!

Now let us start with a way that should work on any freshly installed Ubuntu system:

The Standard Way
Warning /!\ This procedure gives you a full root shell! You can damage your system if you are not careful!

When booting up press SHIFT (in systems 9.10 "karmic" or later) or ESC (in systems 9.04 "jaunty" or earlier) at the grub prompt and use the arrow keys to select the rescue mode option and press enter.

This will boot the system in rescue mode and you should arrive at a prompt that looks like this
root@something
To reset your password type this in
passwd <username>
Press return, then you will be prompted to enter and confirm a new password.
Once you are done resetting your password you can than switch back to the normal GUI mode by putting this in
init 2
If if appears to boot normally, but you see a message that says:

Give root password for maintenance (or type Control-D to continue):
then you will have to try a different trick below.

The Other Way
If the "Standard Way" does not work for you and you recieve the "Give root password for maintenance" message, you can recover your password using the following steps

1. Reboot your computer

2. Press SHIFT or ESC at the grub prompt (as earlier).

3. Select your image.

4. Highlight the line that begins kernel and press 'e' to edit

5. Go to the very end of the line, change the ro to rw and add init=/bin/bash

press enter, then press b to boot your system.

Your system will boot up to a passwordless root shell.

6. Type in passwd username

7. Set your password.

8. Type in reboot

The Other Way Lucid
At least for 'Lucid' I found out that the steps 1-5 in the procedure mentioned above are slightly different:

1. Reboot your computer

2. Hold shift during boot to start GRUB menu

3. Highlight your image and press 'e' to edit

4. Find the line starting with linux and append init=/bin/bash at the end of that line

5. Press ctrl-x to boot.

Then follow the steps 6-8 as mentioned above.
ubuntu2011
 楼主| 发表于 2013-6-22 19:53:42 | 显示全部楼层
peng85344558 发表于 2013-6-22 18:03
多整几下 这个问题不常见
另外说下 你的帖子想完善是不可能的 我可以拖出几年操作的问题 哈哈~~

翻译了一下
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2024-11-22 16:01 , Processed in 0.089659 second(s), 14 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表