LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-09-2007, 01:41 PM   #1
MikRose
Member
 
Registered: Mar 2006
Location: Arizona
Distribution: Mint 19.2
Posts: 100

Rep: Reputation: 15
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?
 
Old 03-09-2007, 03:07 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 79
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:
  1. Go to a terminal in the live cd environment.
  2. Mount the partition you installed to, and navigate to the etc directory under that mountpoint.
  3. 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.).
  4. Figure out what your username is in the LiveCD environment (i.e., type “whoami”).
  5. Create a password for that user (i.e., type “passwd”).
  6. 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.
 
Old 03-10-2007, 11:32 AM   #3
MikRose
Member
 
Registered: Mar 2006
Location: Arizona
Distribution: Mint 19.2
Posts: 100

Original Poster
Rep: Reputation: 15
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remote password not accepted v1nc3nt Linux - Newbie 1 05-12-2006 04:36 AM
Password Accepted but Kicked Out shams Fedora 1 03-10-2005 04:05 AM
Login fails, but password is accepted skulka Linux - Software 3 01-06-2005 06:38 PM
root password not accepted MauricioTulua Linux - Software 3 07-04-2004 01:21 AM
Help.. su password no longer accepted icb410 Linux - General 3 05-30-2004 09:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration