/Etc/passwd file
The passwd file is stored in the/etc directory. This file stores information of all user accounts. You can use the cat/etc/passwd command to view the file content.
A passwd file consists of multiple records, each of which occupies one row and records all information of a user account. each record consists of seven fields separated by colons. The format is as follows:
Username: password: User ID: Group ID: comment: home directory: login shell
Username
Password
User ID (UID)
Group ID User Group Identifier, GID for short. (Different users can belong to a user group and have the permissions shared by the user group. Similar to UID, GID uniquely represents a user group)
Comment user account comment
Home directory. (This user's home directory)
After a login shell user logs on, a process to be started is responsible for transmitting user operations to the kernel. This process is a command parser or a specific program that the user logs on to the system and runs.