/etc/passwd file:
User name: Password placeholder: User id: Group ID: Comment Information: Home directory: User's default shell (default shell location:/etc/shells)
Example: Test:x:501:501::/home/test:/bin/bash
User name test: User ID 501: Group ID 501: No comment: Home directory/home/test: Default Shell/bin/bash
/etc/shadow file:
User name: encrypted password: Last password change: password minimum Age: Password maximum age: Password Expiration warning interval: Inactivity period: Account expiration: Reserved area
Example: Test:$1$zrqrwuxu$gjev180plwhj3nqhrvqyh0:16451:0:99999:7: ::
/etc/group file:
Group name: group Password placeholder: Group ID: Owning member (multiple members separated by commas)
Example: Sys:x:3:root,bin,adm
/etc/gshaow: Password information for the group
Example: Root:x:0:root
This article from "This Life Carefree" blog, declined reprint!
Several files about the user in Linux