Change the Windows logon password in Ubuntu

Source: Internet
Author: User

Originally published on Netease blog 23:16:29

Sudo apt-Get install chntpw

Mount/dev/sda1/mnt/C/

CD/mnt/C/winnt/system32/config

Chntpw Sam # view the Sam File

Chntpw-u username Sam select a user whose password is to be modified

Chntpw help manual -- transferred from http://www.allguru.net/security/reset-windows-password-chntpw/
Reset Windows password using chntpw
Chntpw is a Windows NT 2 k XP user password tool for Delete passwords and restrictions from Sam database on installed system.
This tools does not brute force password but only delete passwords and restrictions for administrators and simple user in SAM Database.
To erase password use a script to search NTFS drives from your XP to mount your partition.
Deleting the password will enable you to login to the system without a password, but it will not give you access to any encrypted data on the system.

Name
Chntpw-utility to overwrite Windows NT/2000 Sam passwords
Synopsis
Chntpw [Options] [systemfile] [securityfile] [otherreghive] [...]
Description
This manual page documents briefly the chntpw command. this manual page was written for the Debian distribution because the original program does not have a manual page. chntpw is a utility to view some information and change user passwords in a Windows NT/2000 Sam userdatabase file. it is not necessary to know the old passwords to reset them. in addition it contains a simple Registry Editor (same size data writes) and hex-editor with which the information contained in a registry file can be browsed and modified.

Options
-H
Show Summary of options.
-U Username
Username to change. Default is administrator
-L
List all users in the SAM Database.
-I
Interactive: list all users (as per-l) and then ask for the user to change.
-E
Registry Editor with limited capabilities.
-D
Use buffer debugger.
-T
Show hexdumps of structs/segments (deprecated debug function ).

Examples

Chntpw SAM System
Opens registry hives Sam and system and change administrator account. This will work even if the name has been changed or it has been localized (since different language versions of NT use different administrator names ).
Chntpw-u jabbathehut mysam
Prompts for password for jabbathehut and changes it in the mysam registry file, if found (otherwise do nothing)

See also
If you are looking for an automatic procedure for password recovery, you might look at the bootdisks provided by the upstream author at http://home.eunet.no /~ Pnordahl/ntpasswd/
There is more information on how this program works available at/usr/share/doc/chntpw registry works, what are syskeys and some other issues.

Author
This manual page was written by Javier Fernandez-sanguino PE? A, for the Debian GNU/Linux system (but may be used by others ).

 


Ubuntu 11.04 has already come out, but unfortunately I still don't use ubuntu.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.