I had created two users on Linux with the same exact passwords, but when I looked at the /etc/shadow file, I found that the hashed values look different, although the salt file is the same. (Please see below, j9T is the salt). Why the hashed passwords are NOT similar, although the slat and password are similar?

# tail /etc/shadow
  • similar does not mean same specifically
    – jsotola
    Sep 19, 2022 at 22:18

1 Answer 1


The second field (j9T) is not the salt, it's the param (hash complexity parameter). You could read more information about the format of the hash here and here

You salt is actually the third field, and you can see it's different.

The actual hash is the fourth field.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .