Question 550
During a beginner Linux practical, the following issue occurs: A technician changes one user's login password by overwriting their line in /etc/shadow with a copied hash from another user. Which finding would validate the selected approach?
Explanation
Correct Answer
The intended account authenticates with its new credential and the other account remains unchanged. This is specific evidence for the stated requirement. The explanation is: Password changes must maintain authentication database integrity and use properly generated protected hash records. The required action is: Use passwd or approved account tools instead of manually copying protected password hashes.
Incorrect Answers
This test can succeed without resolving the cause described here. It addresses: Unix ownership depends on numeric UID identity; reusing one UID merges effective file ownership semantics. The relevant causal dependency is: Password changes must maintain authentication database integrity and use properly generated protected hash records. The required validation is “The intended account authenticates with its new credential and the other account remains unchanged”.
The alternative measures an outcome associated with: The account database stores UIDs and primary GID references, while the group database maps group names and member lists. It does not verify the stated failure. Here password changes must maintain authentication database integrity and use properly generated protected hash records. Confirm “The intended account authenticates with its new credential and the other account remains unchanged”.
That observation would verify a different mechanism: id for the authorized test member reports the new group and a nonmember does not. It would not establish whether the present failure was corrected, because password changes must maintain authentication database integrity and use properly generated protected hash records. Test “The intended account authenticates with its new credential and the other account remains unchanged” instead.