UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
I set up Ubuntu 6.06 on a 2nd HD with XP Home on the 1st HD and everything went fine. When I choose Ubuntu on the grub and get the screen, the user and password I just set up aren't accepted. I had just done it and written them down with correct case size, etc., but now not able to access. Short of re-installing, any shortcuts?
I don’t know of anything official Ubuntu-style, but you might boot to a LiveCD, and try to fix it. Here’s what i would do:
Go to a terminal in the live cd environment.
Mount the partition you installed to, and navigate to the etc directory under that mountpoint.
Take a look at the file named “passwd” (look for the username you entered, and see if you had made a typo in the username. If it was a typo, you must correct it in several places. First, rename the home directory from /home/badusername to /home/goodusername. Then try typing “grep -rl 'badusername' * | xargs sed -e 's/badusername/goodusername/g' -i” when in the root of your mounted partition. If it’s not a typo in the username, read on.).
Figure out what your username is in the LiveCD environment (i.e., type “whoami”).
Create a password for that user (i.e., type “passwd”).
Copy the new password to the old partition (i.e., find the line containing your LiveCD username in /etc/shadow. Copy all but the first field from that line. Open etc/shadow from the mountpoint. Find the line containing your username, and overwrite all but the first field with the whatever text you copied. Double check to make sure both lines are equivalent save the username.).
Thank you osor, your first suggestion was successful! If I hadn't played around with Linux a little previously I might have needed more info on mounting...but not so (at least not now!). I found I had spelled part of my username with K instead of a C. I do spell it this way once in a blue moon, if a site won't take the C spelling, but my mind sees what it wants sometimes! Thank you again, if you don't mind, I'd like to add you to my "Buddy" list?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.