Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-13-2006, 09:22 AM   #1
LQ Newbie
Registered: Jul 2006
Posts: 8

Rep: Reputation: 0
username & password problem ubuntu

Feeling very green just downloaded most recent ver. of ubuntu all was well until log in and it denied access. Tried any and all password and username combos to no avail. Unsure of how to proceed. Do we uninstall then re-install? if so how? Maybe someone can suggest how to get around this. really want in Azmike I believe I posted in the wrong forum please excuse my error

Last edited by azmike; 07-13-2006 at 10:47 AM.
Old 07-13-2006, 11:30 AM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 273Reputation: 273Reputation: 273
1) Boot up with the live CD
2) mount your hard drive install (you need to mount the / partition of the hard drive install, something like /dev/hda2 for the primary drive, second partition)
3) type chroot /mnt/hda2 or whatever you called the mounted drive. This will make you be the root user of the hard drive install. Then cd /mnt/hda2 (change directory to the drive you just chrooted into).
4) ls /home and see if there's a username you recognize. If there is then type passwd username where username is of course, your username. This should let you set a new password.
4b) If you don't see a user you like, type adduser username and it should create you a /home directory for that user and prompt you for a password.
5) Type exit
6) Unmount the drive
7) reboot into your hard drive install.
Old 07-13-2006, 11:40 AM   #3
Registered: Oct 2005
Location: Knoxville, Tn (USA)
Distribution: OpenSUSE, Ubuntu
Posts: 250

Rep: Reputation: 30
If you installed the most recent version of Ubuntu (version 6.06), then you have to create a user name and password during the installation. This is what you should use. Are you saying that you've forgotten this password?

type chroot /mnt/hda2 or whatever you called the mounted drive.
Chroot should work because the root account on Ubuntu is disabled as everything is done via sudo.

Old 07-13-2006, 01:02 PM   #4
LQ Newbie
Registered: Jul 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs up This is great

I could have never imagined the excellent info I have been presented . Thank you very much fyi you give me strength to carry on.
Old 07-14-2006, 12:38 AM   #5
LQ Newbie
Registered: Jul 2006
Posts: 8

Original Poster
Rep: Reputation: 0
I believe it was accidental but we are up and running and I can't believe the resources available including these forums you guys are great
Old 08-22-2006, 11:03 AM   #6
LQ Newbie
Registered: Aug 2006
Posts: 5

Rep: Reputation: 0
hi everybody,
i am a new member and this is my first question. i have a laptop that was installed with ubuntu. unfortunately, i don't know its username and also don't have a live CD. which CD do i have to install?
Not: there is only ubuntu on the laptop, no windows and so no partioning the hard drive.


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
Ubuntu Username and Password rdmatt Ubuntu 3 06-29-2006 07:49 AM
Username and password on ubuntu 6.06 i3 CGF Linux - Newbie 2 04-08-2006 07:40 AM
Resetting Username & Password - HELP Shanahan Fedora 3 05-12-2005 04:50 AM
HFC-PCI, ISDN. Where does my Username & Password go? lordvetinari Linux - Networking 1 03-09-2004 04:07 PM
can't install modem and forget username & password HadiHasan Linux - Software 1 03-10-2003 03:27 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:22 PM.

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