Linux Foundation Certified System Administrator (LFCS) — Question 114
Which of the following files assigns a user to its primary group?
Answer options
- A. /etc/pgroup
- B. /etc/shadow
- C. /etc/group
- D. /etc/passwd
- E. /etc/gshadow
Correct answer: D
Explanation
The correct answer is /etc/passwd, as this file contains user account information, including the primary group ID. The other options do not serve this purpose: /etc/group holds group information, /etc/shadow stores secure user password information, /etc/pgroup does not exist in standard Linux distributions, and /etc/gshadow is used for group password and membership details.