linux rescue

So far in our series we’ve covered how to reset your Windows password with the Ultimate Boot CD, but if you are a little more technical you might want to simply use the excellent System Rescue CD, which is based on Linux.

到目前为止,在我们的系列文章中,我们已经介绍了如何使用Ultimate Boot CD重置Windows密码 ,但是,如果您有更多的技术知识,则可能只想使用基于Linux的出色的System Rescue CD。

Note that if you are using standard Windows encryption for your files, resetting the password will permanently disable access to those files. In that case you should crack the password, which is something we’ll cover in an upcoming article.

请注意,如果您对文件使用标准Windows加密,则重置密码将永久禁用对这些文件的访问。 在这种情况下,您应该破解密码,这将在以后的文章中介绍。

If you are an Ubuntu user and forgot your password, we’ve covered how to do that as well, either the easy way with the grub menu or alternately with the live cd.

如果您是Ubuntu用户,并且忘记了密码,我们还将介绍如何执行此操作,或者通过grub菜单的简单方法或通过live cd进行操作 。

创建系统救援CD (Creating the System Rescue CD)

Before you can do anything else, you’ll need to download a copy of the System Rescue CD and burn the ISO image to disc. For this task, I prefer the simple ImgBurn utility, but you are free to use whatever burning application you prefer instead.

在执行其他任何操作之前,您需要下载System Rescue CD的副本并将ISO映像刻录到光盘。 对于此任务,我更喜欢简单的ImgBurn实用程序,但是您可以自由使用自己喜欢的任何刻录应用程序。

If you are using ImgBurn, click the Write image file to disc button…

如果您使用的是ImgBurn,请单击“将图像文件写入光盘”按钮…

Click the File button near Source and then pick the ISO file, then click the Burn button near the bottom. That’s about all there is to it.

单击源附近的文件按钮,然后选择ISO文件,然后单击底部附近的刻录按钮。 这就是全部。

Download the System Rescue CD from sysresccd.org

从sysresccd.org下载System Rescue CD

重设密码 (Resetting Your Password)

Now that you have your boot CD, you’ll want to boot from it, which will take you to this very informative prompt, with some basic instructions on how to use the CD.

有了启动CD之后,您将需要从中启动CD,这将带您进入非常有用的提示,并提供了有关如何使用CD的一些基本说明。

The first thing we’ll want to do is mount the hard drive, using this command. (Note that you might not need to use the –o force argument, it’s only really for when the system didn’t shut down correctly)

我们要做的第一件事就是使用此命令挂载硬盘。 (请注意,您可能不需要使用–o force参数,这仅适用于系统未正确关闭的情况)

ntfs-3g /dev/sda1 /mnt/windows –o force

ntfs-3g / dev / sda1 / mnt / windows –o强制

You can use the df –m command to verify that the drive has been mounted and that it’s the right drive. Note that it’s mounted on /mnt/windows at this point.

您可以使用df –m命令来验证该驱动器已安装并且是正确的驱动器。 请注意,此时已将其安装在/ mnt / windows上。

Now you’ll want to change directory into the Windows/System32/config directory inside of your windows installation. For mine, the full path was something like this, but it might be different on yours:

现在,您需要将目录更改为Windows安装中的Windows / System32 / config目录。 对于我来说,完整的路径是这样的,但是您的路径可能有所不同:

cd /mnt/windows/Windows/System32/config

cd / mnt / windows / Windows / System32 / config

Once you are in that directory, you should see that there is a SAM file, which is where we’ll want to change the passwords.

进入该目录后,您应该会看到有一个SAM文件,我们将在此文件中更改密码。

To change the password we’ll use the chntpw command, and it’s most useful to use the –l argument first to list out all the usernames in the file.

要更改密码,我们将使用chntpw命令,最先使用–l参数列出文件中的所有用户名最为有用。

chntpw –l SAM

chntpw –l SAM

Now you can add the –u argument with your username, which will end up being something like this command, except you’ll want to replace geek with your username:

现在,您可以使用用户名添加–u参数,这最终将类似于以下命令,除了您需要将geek替换为用户名:

chntpw –u geek SAM

chntpw –u geek SAM

This will present you with a wizard type screen:

这将为您显示向导类型的屏幕:

I’m going to assume that you want to set a new password, so just type “2” at the prompt, add in your password, and remember to use the “y” key when prompted to save.

我将假设您要设置一个新密码,因此只需在提示符下键入“ 2”,添加密码,并在提示保存时记住使用“ y”键即可。

At this point your password has been changed, so you can issue the reboot command to restart the computer (should take the disc out of the drive)

此时,您的密码已更改,因此您可以发出重新启动命令以重新启动计算机(应将光盘从驱动器中取出)

And now you should be able to login with the new password:

现在,您应该可以使用新密码登录了:

Note that I tested this technique on both XP, Vista and Windows 7 with good results.

请注意,我在XP,Vista和Windows 7上都测试了此技术,并取得了良好的效果。

Download ImgBurn from Ninite

从Ninite下载ImgBurn

翻译自: https://www.howtogeek.com/howto/windows-vista/change-your-forgotten-windows-password-with-the-linux-system-rescue-cd/

linux rescue

linux rescue_使用Linux System Rescue CD更改忘记的Windows密码相关推荐

  1. windows更改密码脚本_如何更改您的Windows密码

    windows更改密码脚本 Your Windows account password may be a local user account password or the same passwor ...

  2. 如何使用Linux重置Windows密码

    如果您(或您认识的人)忘记了Windows密码,您将很高兴了解chntpw ,这是一个可用于重置Windows密码的简洁的Linux实用程序. 对于此方法,我创建了Windows虚拟机,并在我的用户帐 ...

  3. 【Android 逆向】Linux 文件权限 ( Linux 权限简介 | 系统权限 | 用户权限 | 匿名用户权限 | 读 | 写 | 执行 | 更改组 | 更改用户 | 粘滞 )

    文章目录 一.Linux 权限简介 二.系统权限 / 用户权限 / 匿名用户权限 1.系统权限 2.用户权限 3.匿名用户权限 一.Linux 权限简介 Linux 是基于文件的系统 , 内存 , 设 ...

  4. linux cd命令进入d盘,cd命令进入目录 Windows+R调出运行界面

    如何运行命令提示符,然后使用CD命令进入制定文件夹 在win系统下进入命令提示符的方式是在开始的输入框中输入"cmd",然后按"enter"进入.cd为进入的命 ...

  5. Linux 小知识翻译 - 「单CD 的linux」

    这次聊聊「单CD Linux」. 所谓「单CD Linux」,就是不用安装,从CD-ROM启动后就可以使用的Linux. 有名的KNOPPIX就是「单CD Linux」,此外还有Puppy Linux ...

  6. linux C 语言的 system

    linux C 语言的 system是用来在程序中执行shell命令. 使用方法 #include<stdlib.h> //函数形式 int system(const char * str ...

  7. 没有权限cd linux,为什么linux在root权限下 打cd命令没有用,都显示没有那个目录或文件...

    心怡 1级 2016-06-28 回答 一.目录操作命令 cd cd命令功能 在每一个操作系统中,都需要有改变目录的工作,linux也不例外,在linux操作系统中,是通过cd命令来改变工作目录的. ...

  8. linux修改文件创建的时间格式,Linux下修改文件创建时间(修改文件更改时间)

    Linux下修改文件创建时间(修改文件更改时间) 进到要改的文件目录里 find . -name "*" -exec touch '{}' \; 注:最后一定要加分号,{}外一定要 ...

  9. linux将文件的时间记录改为,Linux下修改文件创建时间(修改文件更改时间)

    Linux下修改文件创建时间(修改文件更改时间) 进到要改的文件目录里 find . -name "*" -exec touch '{}' \; 注:最后一定要加分号,{}外一定要 ...

最新文章

  1. java新手笔记21 接口
  2. Sublime Text 2 中怎样查找scope的名称
  3. struts1,struts2,springMVC对比
  4. Web前端基础---CSS样式--盒子模型--浮动与定位
  5. configparser模块简介
  6. atol、atoll、atof函数
  7. 十四五规划和2035年远景目标纲要 第五篇 加快数字化发展 建设数字中国
  8. springboot 动态指定日志路径(logback) 自动跟随项目路径
  9. 手机将PDF转换成Word的超简单方法
  10. mstar android 怎么连接电脑,Android:Mstar平台 HDMI OUT 静音流程
  11. hackbar工具安装使用教程
  12. 简洁易用的日志模块——log4j
  13. 48搜索相关参数梳理以及bouncing results问题解决方案
  14. 主流浏览器发展史及其内核初探
  15. Vue3加载中(Spin)
  16. VSCode 如何设置启动时打开上次关闭时在编辑的文件
  17. 大数据时代,数据实时同步解决方案的思考—最全的数据同步总结
  18. CSV文件内容乱码处理办法
  19. 用python函数画德国国旗代码_每日一程-11.利用Python turtle库绘制国旗
  20. Portal-Gateway路由网关

热门文章

  1. python制作索引图像
  2. 使用代理上网的好处是什么?
  3. java migrate_flyway学习之migrate
  4. uniapp的button属性
  5. 单片机实验-开发板动态显示电路移植
  6. 李嘉诚:五十年不败秘诀九○%时间先想失败
  7. 蓝桥杯--世纪末的星期
  8. Butterknife与各种事件
  9. Winform中ComBox中SelectedValue和SelectedText的值不是同一组数据
  10. Duan2baka的高精度模板!