Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trying to use JOHN to find weak passwords.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
chrism
Guru
Guru


Joined: 15 Jul 2004
Posts: 526

PostPosted: Wed Nov 02, 2005 8:34 pm    Post subject: Trying to use JOHN to find weak passwords. Reply with quote

Hi,

I am trying to use john to detect weak passwords which allready have been set.
When I run
Code:
 john /etc/passwd
I get:


Loaded 0 passwords, exiting...

Any help would be appreciated. Thanks Chris
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Wed Nov 02, 2005 8:43 pm    Post subject: Reply with quote

That's probably because /etc/passwd contains no passwords. Try this instead

john /etc/shadow

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
chrism
Guru
Guru


Joined: 15 Jul 2004
Posts: 526

PostPosted: Wed Nov 02, 2005 9:01 pm    Post subject: Reply with quote

What is /etc/passwd god for? What is the difference between /etc/shadow and /etc/passwd?

Thanks,
Chris
Back to top
View user's profile Send private message
krolden
Apprentice
Apprentice


Joined: 28 May 2004
Posts: 293
Location: Belgium

PostPosted: Wed Nov 02, 2005 9:27 pm    Post subject: Reply with quote

yellowhippy wrote:
What is /etc/passwd god for? What is the difference between /etc/shadow and /etc/passwd?

Thanks,
Chris


/etc/passwd = world readable
/etc/shadow = only readable by UID 0

Security reasons. If /etc/passwd would contain hashed passwds, anyone (i.e. any user) could just copy it, and crack it. That's why the passwd is kept in /etc/shadow.
The Shadow Suite has other features too, such as automatically locking out inactive accounts, etc.

Google for Shadow Suite if you want to learn more about it.
Back to top
View user's profile Send private message
chrism
Guru
Guru


Joined: 15 Jul 2004
Posts: 526

PostPosted: Wed Nov 02, 2005 9:50 pm    Post subject: Reply with quote

Thanks a lot.
Chris
Back to top
View user's profile Send private message
chrism
Guru
Guru


Joined: 15 Jul 2004
Posts: 526

PostPosted: Thu Dec 22, 2005 3:03 pm    Post subject: Reply with quote

Can John work with LDAP as well? Or how can find weak passwords in LDAP?

Thanks,
Chris
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum