Question 450
A Linux operator investigates: A Linux host uses directory-based account resolution and /etc/passwd does not list a known user. Which mechanism most directly accounts for the symptom?
Explanation
Correct Answer
The relevant Linux mechanism is Name service switch resolution can include accounts not stored in local passwd files. That supports Query the configured NSS databases with getent passwd username, then verifying that getent returns the expected directory account while local files remain unchanged.
Incorrect Answers
This option serves the scenario “A privileged application account should not have an ordinary interactive login shell”. The governing principle is Special-purpose service accounts need not permit general human logins. The present scenario is distinguished by “Name service switch resolution can include accounts not stored in local passwd files”.
The proposed principle does not identify the crucial dependency in this case: Name service switch resolution can include accounts not stored in local passwd files.
The related but distinct situation is “A support team needs to inspect one user's groups but /etc/group alone seems to omit the primary group”. This behavior is explained by The primary GID is stored in the passwd record and can be resolved through group databases. For the stated problem, “Name service switch resolution can include accounts not stored in local passwd files” addresses the central condition.