To overwrite a Windows 7 password, one can boot from a Ubuntu LiveCD and run chntpw.

Unfortunately, installing chntpw is not so easy:

$ sudo apt-get install chntpw
E: Unable to locate package chntpw
  • Unfortunately I can't comment to @Nicolas Raoul, that's why I post this as a answer. Sorry for this. I have the same problem when trying to install boot-repair. I tried all this, but it still doesn't work. What can I do? – sevku Aug 13 '15 at 12:24

First open the Ubuntu Software Center, in the Edit menu click Software Sources..., and in the window that appears enable universe as seen below:

Ubuntu enable universe

Then run sudo apt-get update.

You should now be able to install chntpw using sudo apt-get install chntpw.

  • Works perfectly – Shautieh Jul 11 '18 at 17:16

protected by Community Jan 3 '18 at 10:39

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.