Summary

/etc/shadow stores local Linux account password hashes and password-aging information. It is normally readable only by root.
A readable /etc/shadow can provide password hashes that may be tested offline for weak passwords.

Format

Each line represents one account, each line follows this pattern:

username:password:lastchange:min:max:warn:inactive:expire:reserved

Example:

kali:$y$j9T$HASH:20300:0:99999:7:::

username - account name.
password - password hash or account status. ! or * generally means password authentication is disabled. $y$ - yescrypt hash. $6$ - SHA-512. $5$ - SHA-256. $1$ - MD5.
lastchange - days since 1970-01-01 when the password was last changed.
min - minimum days before the password can be changed again.
max - maximum password age in days.
warn - days before expiration when the user receives warnings.
inactive - days after password expiration before the account is disabled.
expire - account expiration date, expressed as days since 1970-01-01.
reserved - currently reserved/unused field.