Question 280
In a Linux Essentials v1.6 practice lab, the learner observes: A class instructor needs a separate local Linux identity for a new student but creates a directory named after the student and assumes that automatically creates an account. Which supported corrective action most directly addresses the problem?
Explanation
Correct Answer
The main issue is: Creating a filesystem directory does not create a Unix user identity with a UID, account database entry and login settings. The appropriate correction is: Run the supported user creation process with approved home directory and account defaults, then verify the new entry through account tools. Verify success by checking: The new account has the intended unique UID and home directory and can authenticate only through its configured credential policy.
Incorrect Answers
This action addresses sudo command elevation without root login, whose causal condition is: Sudo can authorize and log selected privileged commands under a named user account without distributing a shared root login secret. The current scenario instead requires attention to: Creating a filesystem directory does not create a Unix user identity with a UID, account database entry and login settings.
This action addresses passwd changes authentication password for account, whose causal condition is: The passwd utility performs an authorized password update using the system's account authentication mechanisms rather than editing identity metadata as plain text. In this question the necessary remedy is “Run the supported user creation process with approved home directory and account defaults, then verify the new entry through account tools”, which this alternative does not provide.
This action addresses id and group membership for account verification, whose causal condition is: Effective group access depends on actual user and supplementary group identity information, which can be inspected with tools such as id. The observed condition is a class instructor needs a separate local Linux identity for a new student but creates a directory named after the student and assumes that automatically creates an account; this mechanism addresses another problem.