LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-29-2012, 09:12 AM   #1
danakamalakar
LQ Newbie
 
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
Find out Username & password


@ Reddazz........
How can u reset user password..
u don't know current password.........................?
 
Old 01-29-2012, 12:24 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If you don't know the user password than do it logged in as root with
Code:
passwd USERNAME
where USERNAME is obviously the name of the user whose password will be changed.
 
Old 01-29-2012, 02:40 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator response

Hi,

Welcome to LQ!
Quote:
Originally Posted by danakamalakar View Post
@ Reddazz........
How can u reset user password..
u don't know current password.........................?
Please do not resurrect old threads. Especially when query is for your potential question/problem(s). It would be best to create a new thread. Your post/query has been moved to a new thread.

FYI: I suggest that you look at 'How to Ask Questions the Smart Way' so in the future your queries provide information that will aid us in diagnosis of the problem or query.
 
Old 01-30-2012, 02:02 AM   #4
rodrifra
Member
 
Registered: Mar 2007
Location: Spain
Distribution: Debian
Posts: 202

Rep: Reputation: 36
cat /etc/passwd will give you a list of users in the system.
cat /etc/shadow will give you the passwords of those users (encrypted, of course).

Finding a user once you are inside the system is as simple as the first line, finding the password can be as time consuming as brute forcing for it or as simple as asking for it. Reseting it is as simple as TobiSGD stated if you have root access. If you want to disallow that account you can change the login shell in /etc/passwd for /usr/sbin/nologin. Or you can disallow password access by substituting the second field in /etc/shadown by ! or *.

Last edited by rodrifra; 01-30-2012 at 02:09 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trick of Linux: How to find a username & password through distribution .iso besa Linux - Newbie 4 05-19-2010 07:22 AM
How to find/recover Redhat Enterprise Linux 3 username & password for login fruitplus Linux - Newbie 1 05-07-2010 07:02 AM
Is it possible to log in without typing username & password sean_zhang Linux - Newbie 6 06-24-2008 01:57 AM
Ubuntu - Find Username/Password briced Linux - General 5 01-23-2008 06:51 PM
Resetting Username & Password - HELP Shanahan Fedora 3 05-12-2005 04:50 AM

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

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