良许Linux教程网 干货合集 Linux中清除Windows密码具体方法

Linux中清除Windows密码具体方法

Linux中如何清除Windows密码?本篇文章重点为大家讲解一下Linux中如何Windows密码具体方法。

Linux中清除Windows密码具体方法
u=936689560,3272300958&fm=26&gp=0

下载安装ntfs-3g

下载驱动让Linux挂载Windows磁盘

[cc]https://tuxera.com/opensource/ntfs-3g_ntfsprogs-2017.3.23.tgz[/cc]

安装

[cc]tar -xvf ntfs-3g_ntfsprogs-2017.3.23.tgzcd ntfs-3g_ntfsprogs-2017.3.23./configuremakemake install[/cc]

下载安装chntpw

下载chntpw

[cc]https://pkgs.org/download/chntpwwget http://li.nux.ro/download/nux/dextop/el7/x86_64//chntpw-0.99.6-22.110511.el7.nux.x86_64.rpmyum -y install ./hntpw-0.99.6-22.110511.el7.nux.x86_64.rpm[/cc]

挂载windows磁盘

挂载windows的系统盘

默认第二个分区才是C盘[cc]mkdir /winmount -t ntfs-3g /dev/xvdb2 /win[/cc]

备份SAM文件

cd /win/Windows/System32/config/[cc]cp SAM{,.bak}[/cc]

清除Windows密码

[cc]chntpw SAMUser Edit Menu:1 – Clear (blank) user password2 – Edit (set new) user password (careful with this on XP or Vista)3 – Promote user (make user an administrator)(4 – Unlock and enable user account) [seems unlocked already]q – Quit editing user, back to user selectSelect: [q] > 1 # 1 清除密码Password cleared!Hives that have changed:# Name0Write hive files? (y/n) [n] : y # y保存0 – OK[/cc]

将Windows系统盘重新挂载回windows中即可

以上就是良许教程网为各位朋友分享的Linux系统相关内容。想要了解更多Linux相关知识记得关注公众号“良许Linux”,或扫描下方二维码进行关注,更多干货等着你 !

img
本文由 良许Linux教程网 发布,可自由转载、引用,但需署名作者且注明文章出处。如转载至微信公众号,请在文末添加作者公众号二维码。
良许

作者: 良许

良许,世界500强企业Linux开发工程师,公众号【良许Linux】的作者,全网拥有超30W粉丝。个人标签:创业者,CSDN学院讲师,副业达人,流量玩家,摄影爱好者。
上一篇
下一篇

发表评论

联系我们

联系我们

公众号:良许Linux

在线咨询: QQ交谈

邮箱: yychuyu@163.com

关注微信
微信扫一扫关注我们

微信扫一扫关注我们

关注微博
返回顶部