5

I tried resetting the password of windows 7 Using chntpw command in Ubuntu . It showed success. But when I try to login from Windows it does not seem to be changed.

I first used live USB of Ubuntu 11.10 and did Try Ubuntu. Then I did:

sudo apt-get install chntpw

And then:

cd /media/Vista/Windows/System32/config
sudo chntpw -u username sam

I followed these instructions and got success like this:

Hives that have changed:
# Name
0 <sam>
Write hive files? (y/n) [n] : y
0 <sam> – OK .

But when I try to login to windows with blank password, I could not log in.

I also tried changing the password and showed success but I could not log in with that password.

Eliah Kagan
  • 117,780

5 Answers5

8

The 0.99.6 version of chntpw is totally disfunctional: https://bugs.launchpad.net/ubuntu/+source/chntpw/+bug/1046622

I struggled more than a hour to find this out.

Try to use 0.99.5 instead, it works for me:

https://launchpad.net/ubuntu/karmic/i386/chntpw/0.99.5-0+nmu1

Calmarius
  • 908
2

I had the same problem. What worked for me was using chntpw to unlock the administrator account, which was the only function of chntpw that worked. Then I booted windows, logged in as Administrator, and cleared the users' password with the users app in control panel.

Adaephon
  • 4,891
hexdude24
  • 21
  • 1
  • I have the same observation: chntpw (regardless of version) does not work on regular user accounts, but you can use it to unlock the Administrator, after which you can log in that way and change the user account. – Jeff Trull Oct 09 '16 at 03:08
1

To change Administrator password: sudo chntpw SAM. To change another users password: sudo chntpw -u <your-username> SAM Please note the Upper-case of the word SAM

koni_raid
  • 3,310
  • When I tried using upper-case it showed some errors regarding the heive . So I used lowercase . I tried using both sudo chntpw sam and sudo chntpw -u username sam . It shows success also . But when I log in to windows it says incorrect password . Thank you . – Sandesh Yadav Jul 11 '12 at 07:53
  • How do you type your username if it contains accented letters? It's impossible. – Calmarius Oct 02 '13 at 20:38
0

The new version of chntpw doesn't work with windows 7. You have to go back a version.

belacqua
  • 23,120
ICMan
  • 1
-1

I am using Ubuntu 12 and chntpw 0.99.5. I have successfully reset my forgotten password by following this guide. If there are multiply Windows systems installed on your hard drive, make sure you choose the desired SAM database.