LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-25-2013, 09:37 AM   #1
linuxguy7820
Member
 
Registered: Mar 2011
Distribution: CentOS, RHEL, Fedora
Posts: 35

Rep: Reputation: 0
Tool to check user passwords


Hello:

I am looking for a tool that will try to crack user passwords on the system or determine how strong their password is. I would prefer just having a tool that could determine a users password weakness though.

_thanks
 
Old 02-25-2013, 09:45 AM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Look, there is no defined criteria for password strength. But for online as well as personal security reasons, it's always recommended to use a password that is a combinations of uppercase, lowercase, special characters and numbers. Such a password will call a 'strong' password.

In the meantime, you can use following link from Microsoft for password strength checker. (Check here). Just type in any password, and it will show you it's strength.
 
Old 02-25-2013, 10:04 AM   #3
linuxguy7820
Member
 
Registered: Mar 2011
Distribution: CentOS, RHEL, Fedora
Posts: 35

Original Poster
Rep: Reputation: 0
I'm doing auditing of linux builds, part of that is to determine how strong service account passwords are. I don't know what the passwords are set to on the box which is why I'm looking for a tool that can scan the /etc/password and shawdow files to determine how secure they are.
 
Old 02-25-2013, 10:08 AM   #4
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
You can't read out the password from /etc/passwd or /etc/shadow, only the hashes of those passwords, so it is impossible to say if a password is strong or not. You can try to crack the passwords, for example with John the Ripper, but it can literally take years to do so.
 
Old 02-25-2013, 10:11 AM   #5
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by shivaa View Post
it's always recommended to use a password that is a combinations of uppercase, lowercase, special characters and numbers. Such a password will call a 'strong' password.
false - long passwords can be equally strong and more memorable

http://xkcd.com/936/

https://www.usenix.org/publications/...tter-passwords
 
Old 02-25-2013, 10:15 AM   #6
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by TobiSGD View Post
try to crack the passwords, for example with John the Ripper, but it can literally take years to do so.
But for audit purposes you might accept anything not cracked in a week as adequate. My experience is when weak passwords are in use some of them are very weak.

Quote:
I don't understand why I have to change my password.
It was cracked in 2 seconds ... let me do that again ... "record1", ok?
But it's not a dictionary word!
 
Old 02-25-2013, 10:15 AM   #7
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
Originally Posted by linuxguy7820 View Post
I'm doing auditing of linux builds, part of that is to determine how strong service account passwords are. I don't know what the passwords are set to on the box which is why I'm looking for a tool that can scan the /etc/password and shawdow files to determine how secure they are.
In that case, you should better define some rules or policy for using a strong password.

Check following files, where such rules can be defined:
Code:
~$ cat /etc/default/useradd
~$ cat /etc/pam.d/common-auth
 
  


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
[SOLVED] Check if all passwords are shadowed in a script marcus1 Solaris / OpenSolaris 3 11-06-2012 12:48 AM
Minimum required to check passwords against Windows AD? rimtrim Linux - Server 5 06-10-2009 08:15 AM
how to convert user passwords and group passwords using pwconv? dolceinter1 Linux - Security 2 11-04-2008 10:03 PM
removing the dictionary check when changing passwords da_kidd_er Linux - Security 2 11-11-2004 05:35 AM
Is there a way to sync Samba passwords with linux user passwords MarleyGPN Linux - Networking 2 09-09-2003 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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