LPIC-1 Exam 102 (Linux Administrator) — Question 2
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 their primary group ID. The other files, such as /etc/group and /etc/shadow, serve different purposes, such as managing group information and storing hashed passwords, respectively.