I simply forgot/lost some OS login passwords. Work-around on a multiboot?
Aloha,
I run a multiboot Toshiba laptop MSWin7/Kubuntu/Mint/... I haven't used some of the OS's in some months, so I forgot or lost the passwords. Is there any way to work around this, even via another os? Is it possible to breach or to change my login & pwd from another os? |
When booting up your GNU/Linux distro's, press "e" at the GRUB menu and add `init=/bin/bash` at the end of the kernel line.
Press enter, then "b" This will boot you into a password-less root shell, you can then run: Code:
passwd <username> :) |
Quote:
Play Bonny! :hattip: |
Quote:
To avoid this you have to encrypt the partition or disable access to system with bios password and grub password; so that no one can bypass linux login authenication. |
See http://www.openwall.com. It has some programs for extracting Windows passwords.
|
Quote:
Scary! |
I'm sorry to return so late.
The solution presented in #2 did not work for me. It leaves me at a blank black screen with a blinking cursor. Anything else I can try? |
Quote:
Anyway, if that really doesn't work (though I simply doubt it as long as you're doing it correctly), you can also try a linux live cd. Boot the CD/memory stick, open a terminal, identify the OS's root partition (fdisk -l, for instance), mount it (# mount /dev/sdX /mnt/temp - "temp" needs to exist beforehand as far as I know) and then change the root to that partition: Code:
# chroot /mnt/temp |
Ok then, thanks, here goes another try
|
Interesting, I can not get it to work, no matter how meticulous I copy the command.
|
I press E at grub.
I type "init=/bin/bash" at the end of the vmlinuz line, without quotes of course Hitting Enter just returns Hitting B makes a "b" in the text, not boot as #2 says Exiting by instruction, "ctrl x", leaves me at a black frozen screen The only way I can get control of my machine is by power button purge What am I doing wrong? |
Quote:
Download the ISO and then: # dd if=/path/to/ubuntu.iso of=/dev/sdc (c or whatever letter your memory stick is) and that's it. Boot it and follow the instructions I've told you about earlier (changing root and so on). On the other hand, you can also boot the other linux OS directly and change root from there. If you want to follow that path, I'll try to help you. |
Quote:
I haven't used GRUB in a while (thank $DEITY). |
Quote:
The youtube video link below will show how to boot into runlevel 1 so you can reset the root password as directed by others above. Quote:
Securing Linux Servers - Best Practices & Troubleshooting Learn at Networknuts The person in the video has a india accent, but it is not very heavy and you can still understand him. |
Listen, I think the easiest way, if you know the password for Kubuntu or for Mint, is to boot that Linux OS. So for instance if you know the root password for Kubuntu, then simply boot it, and in a terminal write:
$ sudo chroot /dev/sdX (where sdX is the root partition (/) for Mint) Then you should be able to change the password by simply running # passwd It's that easy, you don't need an external device to boot it. |
All times are GMT -5. The time now is 10:40 AM. |