LPIC-1 Exam 102 v5 (Linux Administrator) — Question 91
Which of the following files assigns a user to its primary group?
Answer options
- A. /etc/pgroup
- B. /etc/shadow
- C. /etc/passwd
- D. /etc/group
- E. /etc/gshadow
Correct answer: C
Explanation
The /etc/passwd file contains user account information, including the primary group ID for each user. The other files serve different purposes: /etc/group lists group information, /etc/shadow stores secure user password data, /etc/pgroup and /etc/gshadow are not standard files for group assignments.