LPIC-1 Exam 102 (Linux Administrator) — Question 2

Which of the following files assigns a user to its primary group?

Answer options

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.