LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 02-26-2010, 11:37 AM   #1
randogrulz
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?
thanks
randog
 
Old 02-26-2010, 11:46 AM   #2
ordinary
Member
 
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
pixellany
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.)
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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