LFCS Exam QuestionsBrowse all questions from this exam

LFCS Exam - Question 128


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

Show Answer
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

1 comment
Sign in to comment
EliteAllenOption: D
Jan 4, 2024

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.