Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
to set a new passwd.
You can get back to graphical login with Alt+F7.
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
it doesn't recognize it. Can't find any pages on recovering the login password, though.
Thanks for the response. However, still having problems.
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.
Try it with init=/bin/bash instead of single, this should give you a basic shell, then you can use
Code:
passwd root
to set a new password for root.
Alternatively, use a live-CD to boot the system, mount the /-partition, chroot into it, then use passwd to change the password.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.