Password recovery (not the root password)
Hello
I installed SL 6.4 in Virtual Box and have misplaced the password to login to the operating system. Is there a way to reset it? Thanks! |
Well, if you have the root password just login as root and set a new password for your user. Use Ctrl+Alt+F1 to switch to a virtual terminal and login as root, then use
Code:
passwd username You can get back to graphical login with Alt+F7. |
I always keep passwords in a file, but it appears I didn't record either password this time. :redface: So I don't have the root one either.
|
Have a look here: http://www.dagorret.net/reset-root-password-in-linux/
This is for Fedora, but should also work on SL. |
Yes, thank you, but I've googled and there are several webpages with help on recovering the root password. When I get to the grub prompt on the GNU GRUB version 0.97 screen, and enter
Code:
single |
|
Quote:
Here are the steps I've tried and their result. 1) Click Start in VM. 2) Hit any key. 3) Press 'e'. 4) Arrow down to the "kernel" line. Press e. 5) That brings me to "<M_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet" 6) I enter "Single" 7) It boots to the login screen. (Actually, the last few time I've tried this step, it just goes back to the previous screen with the "kernel" line. Alternate steps: 3) Press 'a'. 4) That brings me to this line: "<EYTABLE=us rd_NO_DM rhgb quiet" 5) Enter "Single" 6) Boots to the login screen. "l" and "s" produce the same results. |
Try it with init=/bin/bash instead of single, this should give you a basic shell, then you can use
Code:
passwd root Alternatively, use a live-CD to boot the system, mount the /-partition, chroot into it, then use passwd to change the password. |
That produces the same results as "Single". When I enter "e" to edit commands before booting, then
Code:
init=/bin/bash When I enter "a", then Code:
init=/bin/bash When I enter Code:
int=/bin/bash I'd rather reinstall than boot from a live cd. |
All times are GMT -5. The time now is 11:45 PM. |