Written By Bharat Balegere. On Jan 24. In Agni Karya, Security, Ubuntu, Windows
Most Ubuntu users also have Windows installed on their computer.In such cases you can Reset or Change the passwords of Windows User Accounts from Ubuntu/Ubuntu Live CD using the chntpw tool.
You need to enable Read/Write Access to NTFS partition on which Windows is installed, to use the chntpw tool.
Enabling Read/Write Access
Install NTFS GUI Configuration Tool by running this code in the terminal
sudo apt-get install ntfs-config
Applications-System Tools-NTFS Configuration Tool
Tick the NTFS partition where Windows is installed and give a suitable mount point like xp.
Partions are shown as /dev/sda2 /dev/sda3
If you find this confusing,then tick all of them and assign the mount points as xp,xp1 etc.
Click on Apply.
In the next window Tick Enable Write Support for Internal Device.

Now your windows partitions are mounted as xp,xp1 etc
Places-Computer-Filesystem-Media
You can see your windows partitions mounted here as xp,xp1.
Open each one of them and look for the Windows folder.If the Windows folder is in xp then your Windows is installed in that partition.
Installing chntpw
Execute the following command in terminal
sudo apt-get install chntpw
Changing the Passwords
The windows passwords are stored in the SAM file located Windows/System32/config.
Change the directory to Windows/System32/config by
cd /media/xp/Windows/System32/config
Since the path is case sensitive you may get an error saying No such file or directory.Open the above path in the Nautilus File Manager and make a note of the Uppercase and Lowercase characters.Sometime the Windows folder might be named as windows with a lowercase w or as Windows with an uppercase W.
Once you are in the config folder execute the following commands in terminal
ls
It display the list of files in the Config folder.Make sure a file called SAM is present.
To display the list of users execute the following command at terminal.
chntpw SAM-l

To change the password of the Administrator account execute the following command at terminal.
chntpw SAM
And follow instructions on the screen to reset or change and press the appropriate key.Example press 1 to reset the password.

To change the password or make a specific user the administrator run the following command in terminal
chntpw -u USERNAME SAM
and follow the instructions on the screen.
Thats it.Now restart and boot into Windows and log into the Administrator Account without any problems.













A computer with a live ubuntu most probably does not have access to the internet (specially a home desktop computer that needs a dial-up setting). How can we then apt-get these packages? Is there any offline method to load the packages from a portable memory the ubuntu live? respond to mfarshada — y — a — h- o o —-c -om
Thank you for this article. I was able to use it and it worked great! I had a laptop from work that had no optical drive so my Konboot was useless and this was exactly what I needed. I hope to find many more articles like this!!
I am glad that my article was helpful to you.
Thanks, I’m gonna try this. BTW, if you apt-get these on a persistent Linux flash drive, you can use it as a portable pass-changer that makes you look more pro than OphCrack.
Thanks kyothine, for that info on persistent Linux flash drive.
I have personally tested a windows password recovery tool which is named “windows login recovery”. Burn a boot CD with the program, and insert it into the problem computer and your password will be reset to “Blank”, without losing any data and you needn’t reinstall windows OS.
more info: http://www.windowsloginrecovery.com
This tool is not free.You have to pay for it.
Nice post. I hope you keep on writing such good stuff
HI! You post is quite inspired.
I also wrote a post about windows password recovery: http://blog.resetwindowspassword.com/how-to-recover-and-reset-password-in-vistaxp20032knt-for-free
but I didn’t know the way your post mentioned.
It is great to know it now!
this turorial is great! tthe only problem is that I don’t want to DELETE or CHANGE the password I just need to know what it is.
is there a way to do that?
Greetz