LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
LinkBack Search this Thread
Old 11-07-2007, 05:18 PM   #1
dieterschmied
LQ Newbie
 
Registered: Nov 2007
Posts: 1

Rep: Reputation: 0
I lost my Ubuntu user name and/or password


I recently install Ubuntu rather than Windows with reservation as I am not familiar with Ubuntu, Linux and I don't know the jargon. In any case, I must have used a username or password that was unique to me as I try to use the same six letter password and username for everything. Well, it appears that I don't know either or both. How can I get into my computer to fix this thing?

I have visited a lot of threads and tried the suggestions but I have had no luck. One problem appears to be that all of the suggestions either assume that all user have the same level of expertise or they forget a step or two.

I tried the "escape" when trying to boot up and I have yet to find a "root" that will accept a command. I am at : "root@d-desktop:~#" and I haven't a clue. Any help from anyone with a precise suggestion?

I have a second computer, which I am using for this inquiry that I could use to follow any suggestions precisely.

Or would I be better off reformatting and maybe go back to windows?

Dieter Schmied
dieter@one.net
 
Old 11-07-2007, 05:30 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 62
root is the name of the administrator user on the system. The "root prompt" is what is printed by a command-line "shell", and you can enter into it textual commands.

I don't know what this "escape" is you mentioned, please could you describe what you mean?

If you are looking at a screen with "root@d-desktop:~#" on it on the computer which you are talking about (where you want to find out what username and password you set up during installation), here's how:

To find the user name which was set up during installation of Ubuntu, type in this command (this is case-sensitive):
Code:
grep x:1000 /etc/passwd | cut -d: -f1
In my case this prints out my user name, "matthew"

There is not a good way to get the original password for this user, but you can reset it to a new value with this command:
Code:
passwd matthew
Of course, you will have to replace the "matthew" in that command with whatever your user name is. You will be prompted to enter the new password twice to protect against typing errors.
 
Old 08-31-2012, 01:23 PM   #3
iramki4u
LQ Newbie
 
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by matthewg42 View Post
root is the name of the administrator user on the system. The "root prompt" is what is printed by a command-line "shell", and you can enter into it textual commands.

I don't know what this "escape" is you mentioned, please could you describe what you mean?

If you are looking at a screen with "root@d-desktop:~#" on it on the computer which you are talking about (where you want to find out what username and password you set up during installation), here's how:

To find the user name which was set up during installation of Ubuntu, type in this command (this is case-sensitive):
Code:
grep x:1000 /etc/passwd | cut -d: -f1
In my case this prints out my user name, "matthew"

There is not a good way to get the original password for this user, but you can reset it to a new value with this command:
Code:
passwd matthew
Of course, you will have to replace the "matthew" in that command with whatever your user name is. You will be prompted to enter the new password twice to protect against typing errors.

Excellent !!! its working.. thank u for the post
 
Old 10-11-2012, 06:29 PM   #4
daho
LQ Newbie
 
Registered: Oct 2012
Posts: 1

Rep: Reputation: Disabled
Thank you! It helped me.
 
  


Reply

Tags
password, ubuntu, username


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost root and don't know user password Suse 8.2 dprichard Suse/Novell 3 10-18-2007 01:16 PM
Installed Ubuntu Server asking for User and Password cucolin@ Ubuntu 8 07-20-2006 06:27 PM
lost user name and password for linux red hat help help hjepsen Red Hat 3 02-06-2006 07:39 PM
lost password Loretta59 Suse/Novell 2 05-12-2005 12:40 PM
Lost Password file when user deleted clickit999 Linux - Security 2 09-19-2004 11:12 AM


All times are GMT -5. The time now is 03:55 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration