Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-26-2010, 11:37 AM   #1
LQ Newbie
Registered: Oct 2002
Posts: 10

Rep: Reputation: 0
how do i find the user name and password

i have tried what user name and password i can think of but still no answer. i can get into root and was hoping that i could find it in there. But no luck so far. Anyone have any suggestions?
Old 02-26-2010, 11:46 AM   #2
Registered: Apr 2007
Location: the Rocket City
Distribution: Debian, Ubuntu, CentOS; in days past Fedora, Solaris, SunOS, 4.2BSD, 4.3BSD, SVR4, AIX, HP-UX
Posts: 101

Rep: Reputation: Disabled
Recovering the password is difficult or impossible, but also unnecessary; root can reset a user's password. To find the user name, cat /etc/passwd. Look for a familiar user name near the end of that file, then use the passwd utility (as root) to reset the password fot that user name. Be careful to select only the username you are actually looking for; there are many others in /etc/passwd, and you probably want to leave those alone. See cat and passwd manual pages; "man cat" and "man passwd". It's practically a mantra of mine: man is your friend.

Good luck!
Old 02-26-2010, 02:29 PM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I would have said "impossible"......As the man says, just give the user a new password (or create a new user)

man passwd
man adduser
man usermod

man -k user
man -k password
(The last two illustrate how to search the man pages for keywords.)


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
simpler GUI password for Administrative tasks while retaining complex user password? workforfood Ubuntu 1 08-29-2009 06:48 AM
How to : Find user with expiring password . ? avklinux Linux - Enterprise 2 12-12-2008 06:35 PM
Locking out a user when password expires, but allowing them to change their password kaplan71 Linux - Security 5 06-27-2008 07:12 PM
cannot find user '******' in password file nagabioinfo Linux - Newbie 1 04-01-2008 01:59 AM
Add a user with no password/or user pick password. knockout_artist Linux - Newbie 2 11-26-2007 09:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 AM.

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