Question 300
In a Linux Essentials v1.6 practice lab, the learner observes: A student sees an account name in /etc/passwd and assumes that user must currently be signed in to the system. Which underlying technical principle explains these observations?
Explanation
Correct Answer
The technical basis is: Configured local accounts and active login sessions are different records; tools such as who and w report current logged-in users. Resolve this through: Use who or w to inspect active sessions and separately consult account metadata for the list of created users. The expected evidence is: The results identify a test logged-in session while inactive configured accounts are not falsely reported as connected.
Incorrect Answers
The /etc/passwd database commonly exposes account names and IDs while protected password hashes belong in a more restricted /etc/shadow database. “Inspect approved account metadata through standard account tools without attempting to reveal password hashes or weaken shadow permissions” would remedy that alternative situation, but it would not correct the present issue: configured local accounts and active login sessions are different records; tools such as who and w report current logged-in users.
“Set a least-privilege numeric mode appropriate for the script's intended owner and authorized readers or executors” is the supported response when numeric Unix permission digits combine read 4, write 2 and execute 1 bits for owner, group and other classes. 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 /etc/skel directory conventionally supplies default initial home-directory content for user creation, separate from arbitrary existing home files. “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.