LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-23-2008, 06:59 PM   #1
briced
Member
 
Registered: Jan 2008
Posts: 30

Rep: Reputation: 15
Ubuntu - Find Username/Password


The other night my computer was down and my wife installed ubuntu 7.10 she says it didn't ask for user name or passwords. Is there any way to find out the user name and password?

Last edited by briced; 01-23-2008 at 07:07 PM. Reason: wrong title
 
Old 01-23-2008, 07:06 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
How do I? That's a crappy thread title. In the future why don't you think of better ones that actually describe your question and thread your starting. Thanks.

And as for your question, just set a new password if you want one. Unless you can decrypt the hash in the /etc/shadow file, you won't know the password. And it's probably logged you in as root.

cat /etc/passwd for a list of system users, root and any others that might be around. Check /etc/shadow to see if they have a password.

PS. I'm changing your title for you since you can't, take my advice in the future, make better titles or get slapped around by members and moderators on this forum.
 
Old 01-23-2008, 07:32 PM   #3
briced
Member
 
Registered: Jan 2008
Posts: 30

Original Poster
Rep: Reputation: 15
thats the problem I cant log in except with live cd
 
Old 01-23-2008, 07:40 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Ah then your wife does have the password or she couldn't have finished installing it. Beat it out of her or you can do the simple thing and boot into single user mode and reset the password that way. If it asks for a password, you can pass this on the grub command line during bootup:

init=/bin/bash

Take you right to a shell, just mount /proc and /, then run the passwd command to reset root's password.
 
Old 01-23-2008, 07:41 PM   #5
briced
Member
 
Registered: Jan 2008
Posts: 30

Original Poster
Rep: Reputation: 15
she says she dosnt remember it or putting one in. And how do i run in single user mode?
 
Old 01-23-2008, 07:51 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Quote:
Originally Posted by briced View Post
she says she dosnt remember it or putting one in. And how do i run in single user mode?
At grub boot prompt in command or edit mode, type: linux single
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Get/Change the username & password in a CUSTOM Ubuntu LiveCD tuxhats Ubuntu 0 10-18-2007 10:32 PM
What username and password to use for . . . royeo Linux - Newbie 1 09-28-2006 12:37 AM
username & password problem ubuntu azmike Linux - Software 5 08-22-2006 12:03 PM
Ubuntu Username and Password rdmatt Ubuntu 3 06-29-2006 08:49 AM
Username and password on ubuntu 6.06 i3 CGF Linux - Newbie 2 04-08-2006 08:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:57 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