Question 540
In a Linux Essentials study lab, the student observes: A provisioning script creates accounts with home directories missing basic starter configuration files expected by the helpdesk. Which command or choice meets the stated need?
Explanation
Correct Answer
Configure the account-creation procedure to populate home directories from the relevant /etc/skel defaults. This directly addresses the reported situation. Why it works: The skeleton directory provides template files for newly created home directories when account tools use it. Acceptance evidence: A fresh account receives the expected example settings while an existing user profile remains untouched.
Incorrect Answers
Distinguish the user's primary group from supplementary groups when interpreting id and /etc/group. That explains why “Distinguish the user's primary group from supplementary groups when interpreting id and /etc/group” is useful for its own dependency, but the present failure follows a different constraint: Configure the account-creation procedure to populate home directories from the relevant /etc/skel defaults. The targeted correction is “Configure the account-creation procedure to populate home directories from the relevant /etc/skel defaults”.
The proposed action focuses on a control governed by: Create an appropriate group with groupadd and assign authorized members through account-management tools. In this question the binding condition is: Configure the account-creation procedure to populate home directories from the relevant /etc/skel defaults. Applying “Configure the account-creation procedure to populate home directories from the relevant /etc/skel defaults” addresses that specific cause instead.
“Inspect the relevant /etc/passwd and /etc/group entries through approved read-only tools” acts on a neighboring technical dependency: Inspect the relevant /etc/passwd and /etc/group entries through approved read-only tools. It does not resolve the stated condition, whose causal mechanism is: Configure the account-creation procedure to populate home directories from the relevant /etc/skel defaults. The required action is “Configure the account-creation procedure to populate home directories from the relevant /etc/skel defaults”.