Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 12-28-2008, 10:18 AM   #1
Registered: Aug 2003
Location: Mocksville, NC, USA
Distribution: Gentoo, Slackware.
Posts: 410

Rep: Reputation: 30
/etc/shadow hash changes?

Hi, I was just messing around, and I realized that the new accounts I've created on my system have a much longer hash, and begin with $6$ instead of $1$ like my older useraccounts that havn't had their passwords changed in awhile. What's the reason for this, and what does it mean? What do the cooresponding $1$ and $6$ mean, and whatever other values might be there?
Old 12-28-2008, 12:07 PM   #2
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96

The $X$ string tells crypt what hash to use - $1$ is MD5. $5$ and $6$ are SHA, presumably SHA-1 and SHA2 respectively, although I can't find any documentation which is particularly helpful (googleing for strings like $6$ doesn't get much joy).

Edit: Found this:


Last edited by ilikejam; 12-28-2008 at 12:08 PM. Reason: Wiki link


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
What is used to create the shadow password hash?? helptonewbie Linux - General 11 08-17-2009 02:02 AM
need help unpacking hmac-md5 hash into md5 hash lynx5 Programming 3 02-02-2008 04:06 PM
changing the /etc/shadow hash algo. zerg4141 Linux - Security 2 08-07-2006 08:32 PM
Using hash value as key for other hash in Perl scuzzman Programming 6 02-14-2006 05:08 PM
/etc/shadow- (notice the dash after the word shadow) shellcode Linux - Security 1 09-03-2004 04:54 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration