x:501:100:John Doe:/home/assistant:/bin/ksh
The fields in the /etc/passwd file are:
1. Login name
2. Encrypted password
3. User ID number
4. Group ID number
5. User name or comment field
6. Home directory path
7. Login shell program
So in summary, the /etc/passwd file defines the user accounts and basic attributes.
The /etc/shadow file stores the encrypted passwords separately for security.
The /etc/group file defines the system groups and group membership information.
These three files together define the user accounts and authentication information on the system.