LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-05-2008, 01:49 AM   #1
deepak_message
Member
 
Registered: Oct 2007
Posts: 175

Rep: Reputation: 17
Password Recovery in Linux


Hi,

Can any one tell me, how to recover user or root password. not change from single mode.

Thanks & Regards,

Last edited by deepak_message; 06-05-2008 at 02:38 AM.
 
Old 06-05-2008, 01:57 AM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
There's no easy way to recover a password unless it's really idiotic. You can google and read about johntheripper, which is a tool that can be used to break passwd files. It's commonly used to ensure that there are no weak passwords on a given system.

You can, however, set a new password for any user if you are logged in as root. If you can't login as root and the single user mode is disabled, boot off a livecd, mount your / partition anywhere, chroot into it and then use the passwd command to set a new root password. Once you have that, you can login as root on your own system and change any user's password with "passwd <username>".

Last edited by i92guboj; 06-05-2008 at 01:58 AM.
 
Old 06-05-2008, 12:29 PM   #3
Quag7
LQ Newbie
 
Registered: May 2007
Location: Marana, Arizona - USA
Distribution: Gentoo Linux...current
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by deepak_message View Post
Hi,

Can any one tell me, how to recover user or root password. not change from single mode.

Thanks & Regards,
Passwords are stored on most systems using a one-way hash, so other than brute forcing it (as stated above), there isn't much you can do. This is by design.
 
Old 06-05-2008, 12:35 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
I cannot think of a legitimate scenario where one would need to "break" the password rather than simply replace it. Could you explain why you cannot simply replace the password?
 
Old 06-06-2008, 12:35 AM   #5
deepak_message
Member
 
Registered: Oct 2007
Posts: 175

Original Poster
Rep: Reputation: 17
Quote:
Could you explain why you cannot simply replace the password?
Actually, This stupid question was asked in the Interview.
See, I know that this is also wrong process. and not a good practice for system administrator.

Thanks, :-)

Last edited by deepak_message; 06-06-2008 at 12:37 AM.
 
Old 06-06-2008, 12:52 AM   #6
ciden
Member
 
Registered: Dec 2006
Location: New Delhi, India
Distribution: PCLinuxOS 2010
Posts: 246
Blog Entries: 1

Rep: Reputation: 31
Quote:
Originally Posted by lazlow View Post
I cannot think of a legitimate scenario where one would need to "break" the password rather than simply replace it. Could you explain why you cannot simply replace the password?
If you are an evil hacker and want to steal your friends' girlfriend's fotos from his PC without his knowledge.
This is pretty legitimate.
 
Old 06-06-2008, 01:09 AM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
ciden

Just boot to a livecd, mount the hd, and steal away.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Password Recovery in Edubuntu 7.04 - In Terminal, Root Login : su , password : ????? farhannaeem13 Linux - Security 3 11-30-2007 09:59 AM
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 12:21 PM
Password Recovery rockfort Linux - Security 11 02-02-2005 06:12 AM
Recovery password with RedHat Linux AS2.1 namdn Linux - Networking 1 10-07-2004 09:22 PM
password recovery JesseMor Linux - Security 2 09-10-2004 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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