Exam LFCS All QuestionsBrowse all questions from this exam
Question 128

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

    Correct Answer: D

    The file /etc/passwd assigns a user to its primary group. This file contains user account information, including the user's primary group ID (GID). Each line in /etc/passwd represents a single user account and includes the username, user ID (UID), primary group ID (GID), home directory, and shell. The primary group ID listed in this file determines which primary group the user belongs to.

Discussion
EliteAllenOption: D

D. /etc/passwd Explanation: /etc/passwd: This file contains user account information including the user's primary group ID. Each line in the file represents a user account and contains various pieces of information like username, user ID (UID), primary group ID (GID), home directory, and shell. The primary group ID determines the user's primary group.