john /tmp/passwd_shadow --format=md5crypt -w=rockyou.txt

If you aren’t sure what format, use haiti

Combining the passwd and shadow files:

unshadow /etc/passwd /etc/shadow > /tmp/passwd_shadow