Linux Lite Forums
Using LinuxLite to repair Win 7 password - Printable Version

+- Linux Lite Forums (https://www.freecinema2022.gq/forums)
+-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5)
+--- Forum: Other (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=20)
+--- Thread: Using LinuxLite to repair Win 7 password (/showthread.php?tid=2296)

Pages: 1 2 3


Using LinuxLite to repair Win 7 password - Colin23erk - 10-13-2015

Is there an easy way to use LinuxLite to repair Win 7 password without using a CD or USB .


A third party has locked me out of Win 7 which is dual booted with LinuxLite . I have tried several Bootable repair Disks which have either failed to boot properly or require Input details which I am not able to supply .
I have used Synaptic to install [color=rgb(34, 34, 34)]chntpw[/color]
[color=rgb(34, 34, 34)][/size]From How To Geek i have tried to follow their method[/color]
[color=rgb(34, 34, 34)][/size][/color]
[color=rgb(34, 34, 34)][/size][/color][color=rgb(34, 34, 34)][/size]Using chntpw to reset your password[/color][color=rgb(34, 34, 34)][/size]Before running chntpw, you will have to mount the hard drive that contains your Windows installation. In most cases, Ubuntu 9.10 makes this simple.[/color]
[color=rgb(34, 34, 34)][/size]Click on Places at the top-left of the screen. If your Windows drive is easily identifiable – usually by its size – then left click on it.[/color]
[color=rgb(34, 34, 34)][/size][/color]
[color=rgb(34, 34, 34)][/size]If it is not obvious, then click on Computer and check out each hard drive until you find the correct one.[/color]
[color=rgb(34, 34, 34)][/size][/color]
[color=rgb(34, 34, 34)][/size]The correct hard drive will have the WINDOWS folder in it. When you find it, make a note of the drive’s label that appears in the menu bar of the file browser.[/color]
[color=rgb(34, 34, 34)][/size][/color]
[color=rgb(34, 34, 34)][/size]If you don’t already have one open, start a terminal window by going to Applications > Accessories > Terminal.[/color]
[color=rgb(34, 34, 34)][/size][/color]
[color=rgb(34, 34, 34)][/size]In the terminal window, enter the commands[/color][/size][color=rgb(34, 34, 34)]cd /media
ls[/color]
[color=rgb(34, 34, 34)][/size]pressing enter after each line. You should see one or more strings of text appear; one of those strings should correspond with the string that appeared in the title bar of the file browser earlier.[/color]
[color=rgb(34, 34, 34)][/size]Change to that directory by entering the command[/color][/size][color=rgb(34, 34, 34)]cd <hard drive label>[/color][color=rgb(34, 34, 34)][/size]Since the hard drive label will be very annoying to type in, you can use a shortcut by typing in the first few letters or numbers of the drive label (capitalization matters) and pressing the Tab key. It will automatically complete the rest of the string (if those first few letters or numbers are unique).[/color]
[color=rgb(34, 34, 34)][/size][/color]
[color=rgb(34, 34, 34)][/size]We want to switch to a certain Windows directory. Enter the command:[/color][/size][color=rgb(34, 34, 34)]cd WINDOWS/system32/config/[/color][color=rgb(34, 34, 34)][/size]Again, you can use tab-completion to speed up entering this command.[/color]
[color=rgb(34, 34, 34)][/size][/color]
[color=rgb(34, 34, 34)][/size]To change or reset the administrator password, enter:[/color][/size][color=rgb(34, 34, 34)]sudo chntpw SAM[/color][color=rgb(34, 34, 34)][/size]SAM is the file that contains your Windows registry. You will see some text appear, including a list of all of the users on your system.[/color]
[color=rgb(34, 34, 34)][/size]
[/size]
[/color]
Quote:[color=rgb(34, 34, 34)]
I am having difficulty getting past 
[/color]
Quote:[color=rgb(34, 34, 34)][/size]We want to switch to a certain Windows directory. Enter the command:[size=78%][/size]cd WINDOWS/system32/config/
[/size]
[/color]
[color=rgb(34, 34, 34)][/color]



Re: Using LinuxLite to repair Win 7 password - torreydale - 10-13-2015

You may want to modify your post.  What ended up being posted is super small in size.  Very hard to read and, thus, could limit the help you receive.


Re: Using LinuxLite to repair Win 7 password - Wirezfree - 10-13-2015

Hi,

It seems I'm not the only one who get the funny posts.
I now pre-write my posts in Leafpad, and then just copy 'n' paste into forum.

So without knowing what you have tried...??
This is what Google shows... Fix Windows 7 password with Linux


Re: Using LinuxLite to repair Win 7 password - Colin23erk - 10-14-2015


 
  A third party has locked me out of Win 7 which is dual booted with LinuxLite . I have tried several Bootable repair Disks which have either failed to boot properly or require Input details which I am not able to supply .
I have used Synaptic to install [color=rgb(34, 34, 34)]chntpw[/color]
F[/color][color=rgb(34, 34, 34)]rom How To Geek i have tried to follow their method[/color]
[/color][color=rgb(34, 34, 34)]Using chntpw to reset your password[/color][color=rgb(34, 34, 34)]
[/color][color=rgb(34, 34, 34)]Before running chntpw, you will have to [/color][/color][color=rgb(34, 34, 34)]mount[/color][/color][color=rgb(34, 34, 34)] the hard drive that contains your Windows installation. In most cases, Ubuntu 9.10 makes this simple.[/color][/color][color=rgb(34, 34, 34)]Click on Places at the top-left of the screen. If your Windows drive is easily identifiable – usually by its size – then left click on it.[/color][/color][color=rgb(34, 34, 34)]If it is not obvious, then click on Computer and check out each hard drive until you find the correct one.[/color][/color][color=rgb(34, 34, 34)]The correct hard drive will have the WINDOWS folder in it. When you find it, make a note of the drive’s label that appears in the menu bar of the file browser.[/color]
Mine is -(/media/sda1/Windows/System32/config/ )
[/color][color=rgb(34, 34, 34)]If you don’t already have one open, start a terminal window by going to Applications > Accessories > Terminal.[/color][/color][color=rgb(34, 34, 34)]In the terminal window, enter the commands[/color]
[/color][color=rgb(34, 34, 34)]cd /media[/color]
[/color][/color][color=rgb(34, 34, 34)]ls[/color]
[/color][color=rgb(34, 34, 34)]pressing enter after each line. You should see one or more strings of text appear; one of those strings should correspond with the string that appeared in the title bar of the file browser earlier.[/color][/color][color=rgb(34, 34, 34)]Change to that directory by entering the command[/color]

[/color][color=rgb(34, 34, 34)]cd <hard drive label>[/color][/color][color=rgb(34, 34, 34)]Since the hard drive label [/color]
[/color][color=rgb(34, 34, 34)]will be very annoying to type in, you can use a shortcut by typing in the first few letters or numbers of the drive label[/color]
[/color]
[/color][color=rgb(34, 34, 34)][/code]
colin@colin-NC110:~$ cd /media
colin@colin-NC110:/media$ ls
Backup  cdrom  colin  floppy  floppy0  sda1
colin@colin-NC110:/media$ cd sda1/
colin@colin-NC110:/media/sda1$ cd WINDOWS/system32/config/
bash: cd: WINDOWS/system32/config/: No such file or directory

colin@colin-NC110:/media/sda1$
[/color]
Code:
[/size][/b][/color]

[font=Verdana][size=3][/quote][/size][/font]
[color=rgb(34, 34, 34)][b][font=Verdana][size=3]To change or reset the administrator password, enter:[/size][/color][/b][/font]
 
[b][font=monospace][color=rgb(34, 34, 34)][size=5]sudo chntpw SAM[/size][/b][/font][/color]

[size=3][b][color=rgb(34, 34, 34)]SAM is the file that contains your Windows registry. You will see some text appear, including a list of all of the users on your system.[/b][/color][b][color=rgb(34, 34, 34)]We want to switch to a certain Windows directory. Enter the command[/b][/color] [/size]
[b][font=monospace][color=rgb(34, 34, 34)][size=5]cd WINDOWS/system32/config/[/size][/b][/font][/color][size=3][b][color=rgb(34, 34, 34)][/b][/color][/size]
[font=Verdana][size=3][quote][/size][/font]
 



Re: Using LinuxLite to repair Win 7 password - avj - 10-14-2015

If I am reading this correctly you should be able to just open the file manager and navigate to the WINDOWS/system32/config folder, once there right click on an empty space in the window and select "Open Terminal Here" and you will be in the right place no need to do all the cd commands.  Then all you should have to do is run the following in the terminal you opened.

Code:
chntpw –l SAM
This will list user names, according to the article.

Code:
chntpw –u geek SAM
Replace the "geek" with your windows user name. Choose the 2nd option to (set new) password, after the password is changed, you have to confirm the save by hitting "y" when asked. When you get back to a command prompt you can close the terminal. The password should now be what you chose. Reboot into windows and use the new password.

Info found here:  http://www.howtogeek.com/howto/windows-vista/change-your-forgotten-windows-password-with-the-linux-system-rescue-cd/



Re: Using LinuxLite to repair Win 7 password - Colin23erk - 10-14-2015

Thanks avj


I tried what you suggested with no luck - tried the 2nd one with my user name
Code:
colin@colin-NC110:/media/sda1/Windows/System32/config$ chntpw –l SAM
chntpw version 0.99.6 110511 , (c) Petter N Hagen
openHive(–l) failed: No such file or directory, trying read-only
openHive(–l) in fallback RO-mode failed: No such file or directory
Unable to open/read a hive, exiting..




colin@colin-NC110:/media/sda1/Windows/System32/config$ chntpw –u colin SAM
chntpw version 0.99.6 110511 , (c) Petter N Hagen
openHive(–u) failed: No such file or directory, trying read-only
openHive(–u) in fallback RO-mode failed: No such file or directory
Unable to open/read a hive, exiting..
colin@colin-NC110:/media/sda1/Windows/System32/config$


Colin


Re: Using LinuxLite to repair Win 7 password - Colin23erk - 10-14-2015

Not sure if it helps -- this is the contents of the    /media/sda1/Windows/System32/config/  Files
Quote:/media/sda1/Windows/System32/config/Before Compact
/media/sda1/Windows/System32/config/Journal
/media/sda1/Windows/System32/config/Original
/media/sda1/Windows/System32/config/RegBack
/media/sda1/Windows/System32/config/SM Registry Backup
/media/sda1/Windows/System32/config/systemprofile
/media/sda1/Windows/System32/config/TxR
/media/sda1/Windows/System32/config/BCD-Template
/media/sda1/Windows/System32/config/BCD-Template.LOG
/media/sda1/Windows/System32/config/BCD-Template.LOG1
/media/sda1/Windows/System32/config/BCD-Template.LOG2
/media/sda1/Windows/System32/config/COMPONENTS
/media/sda1/Windows/System32/config/COMPONENTS.LOG
/media/sda1/Windows/System32/config/COMPONENTS.LOG1
/media/sda1/Windows/System32/config/COMPONENTS.LOG2
/media/sda1/Windows/System32/config/COMPONENTS{0f5bec2f-271f-11e5-9ece-dca9715022f5}.TM.blf
/media/sda1/Windows/System32/config/COMPONENTS{0f5bec2f-271f-11e5-9ece-dca9715022f5}.TMContainer00000000000000000001.regtrans-ms
/media/sda1/Windows/System32/config/COMPONENTS{0f5bec2f-271f-11e5-9ece-dca9715022f5}.TMContainer00000000000000000002.regtrans-ms
/media/sda1/Windows/System32/config/COMPONENTS{6cced2ed-6e01-11de-8bed-001e0bcd1824}.TM.blf
/media/sda1/Windows/System32/config/COMPONENTS{6cced2ed-6e01-11de-8bed-001e0bcd1824}.TMContainer00000000000000000001.regtrans-ms
/media/sda1/Windows/System32/config/COMPONENTS{6cced2ed-6e01-11de-8bed-001e0bcd1824}.TMContainer00000000000000000002.regtrans-ms
/media/sda1/Windows/System32/config/COMPONENTS{ba11b468-af01-11e4-8ad9-dca9715022f5}.TM.blf
/media/sda1/Windows/System32/config/COMPONENTS{ba11b468-af01-11e4-8ad9-dca9715022f5}.TMContainer00000000000000000001.regtrans-ms
/media/sda1/Windows/System32/config/COMPONENTS{ba11b468-af01-11e4-8ad9-dca9715022f5}.TMContainer00000000000000000002.regtrans-ms
/media/sda1/Windows/System32/config/COMPONENTS{d7165e1e-bd77-11e3-bed0-dca9715022f5}.TM.blf
/media/sda1/Windows/System32/config/COMPONENTS{d7165e1e-bd77-11e3-bed0-dca9715022f5}.TMContainer00000000000000000001.regtrans-ms
/media/sda1/Windows/System32/config/COMPONENTS{d7165e1e-bd77-11e3-bed0-dca9715022f5}.TMContainer00000000000000000002.regtrans-ms
/media/sda1/Windows/System32/config/COMPONENTS{e539f9a6-264c-11e5-a6d1-dca9715022f5}.TM.blf
/media/sda1/Windows/System32/config/COMPONENTS{e539f9a6-264c-11e5-a6d1-dca9715022f5}.TMContainer00000000000000000001.regtrans-ms
/media/sda1/Windows/System32/config/COMPONENTS{e539f9a6-264c-11e5-a6d1-dca9715022f5}.TMContainer00000000000000000002.regtrans-ms
/media/sda1/Windows/System32/config/DEFAULT
/media/sda1/Windows/System32/config/DEFAULT.LOG
/media/sda1/Windows/System32/config/DEFAULT.LOG1
/media/sda1/Windows/System32/config/DEFAULT.LOG2
/media/sda1/Windows/System32/config/SAM
/media/sda1/Windows/System32/config/SAM.LOG
/media/sda1/Windows/System32/config/SAM.LOG1
/media/sda1/Windows/System32/config/SAM.LOG2
/media/sda1/Windows/System32/config/SECURITY
/media/sda1/Windows/System32/config/SECURITY.LOG
/media/sda1/Windows/System32/config/SECURITY.LOG1
/media/sda1/Windows/System32/config/SECURITY.LOG2
/media/sda1/Windows/System32/config/SOFTWARE
/media/sda1/Windows/System32/config/SOFTWARE.LOG
/media/sda1/Windows/System32/config/SOFTWARE.LOG1
/media/sda1/Windows/System32/config/SOFTWARE.LOG2
/media/sda1/Windows/System32/config/SYSTEM
/media/sda1/Windows/System32/config/SYSTEM.LOG
/media/sda1/Windows/System32/config/SYSTEM.LOG1
/media/sda1/Windows/System32/config/SYSTEM.LOG2




Colin


Re: Using LinuxLite to repair Win 7 password - firenice03 - 10-14-2015

Both -l and -u commands are failing..
The command
Code:
chntpw –l SAM
should list the users
The command
Code:
chntpw –u geek SAM
allows reset of that user...

Not sure but maybe helpful for you guys??? 99.6 version??
http://askubuntu.com/questions/162267/problem-with-using-chntpw-in-ubuntu-to-reset-windows-7-password

Additionally - the instruction here http://www.chntpw.com/reset-windows-7-admin-password-with-ubuntu/ suggests adding the drive identifier when changing directories...


Re: Using LinuxLite to repair Win 7 password - paul1149 - 10-14-2015

Another thing you can try is to rename SAM to SAM.old and then copy the version of SAM from ../system32/RegBack over to the ../config folder. This should give you your previous password back if the date of the backup SAM file predates the problem.

The entries, Last Known Good Configuration, and ~Revert to Restore Point~ in the Win7 Advanced Boot menu (F8 as Windows just begins to load) might do the same thing, not sure.


Re: Using LinuxLite to repair Win 7 password - Colin23erk - 10-14-2015

Hi Paul
Thanks for the idea but I cannot find
RegBack
Quote:../system32/RegBack over to the ../config folder.


I am getting the feeling that the only way to go is to Reinstall Win7 .


Fortunately I keep all my own Data / files in a separate Partition so they should not be affected as I can use them with LinuxLite .
I have always kept them separate  from Windows from the days when crashes were a fact of life


Colin