Ubuntu This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
03-09-2007, 01:41 PM
|
#1
|
Member
Registered: Mar 2006
Location: Arizona
Distribution: Mint 19.2
Posts: 100
Rep:
|
User and Password not accepted.
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?
|
|
|
03-09-2007, 03:07 PM
|
#2
|
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450
Rep:
|
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.).
Just say so if you need any more detail.
|
|
|
03-10-2007, 11:32 AM
|
#3
|
Member
Registered: Mar 2006
Location: Arizona
Distribution: Mint 19.2
Posts: 100
Original Poster
Rep:
|
Success
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?
|
|
|
All times are GMT -5. The time now is 06:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|