Question 80
A controlled command-line practice exercise reports: A student sees an account name in /etc/passwd and assumes that user must currently be signed in to the system. Which observed result would best verify the correction?
Explanation
Correct Answer
This specifically verifies who and w show current signed in sessions: The results identify a test logged-in session while inactive configured accounts are not falsely reported as connected. The related engineering correction is: Use who or w to inspect active sessions and separately consult account metadata for the list of created users. Evidence from another workflow would not establish the stated outcome.
Incorrect Answers
A file long listing shows restricted other bits and a different unapproved account can no longer read the test file. “Apply the intended symbolic chmod change to remove other-read access while retaining necessary owner and group permissions” would remedy that alternative situation, but it would not correct the present issue: the results identify a test logged-in session while inactive configured accounts are not falsely reported as connected.
“Set a least-privilege numeric mode appropriate for the script's intended owner and authorized readers or executors” is the supported response when a long listing decodes to the intended owner, group and other permissions and an unauthorized account cannot modify the script. Here the decisive response is “Use who or w to inspect active sessions and separately consult account metadata for the list of created users”, so that different intervention does not meet the stated requirement.
The newly created test home contains the approved default dotfiles without copying private material from another user's directory. “Configure approved generic starter files in /etc/skel and create a disposable test user with the appropriate home creation settings” applies to that other condition. The reported evidence is a student sees an account name in /etc/passwd and assumes that user must currently be signed in to the system; this alternative would address the wrong dependency.