Question 130
An instructor reviews this Linux fundamentals exercise: A learner grants read permission on a shared directory but removes its execute permission, after which colleagues can see directory names yet cannot enter it or open files. Which observed outcome confirms that the Linux operation works as intended?
Explanation
Correct Answer
This specifically verifies directory execute permission controls traversal: The intended group can enter the authorized directory and open permitted files while unrelated accounts remain blocked. The related engineering correction is: Grant the minimum search or execute permission needed to traverse the intended directory and preserve appropriate protections on its files. Evidence from another workflow would not establish the stated outcome.
Incorrect Answers
The link resolves to its intended report when the target exists and deleting a disposable link leaves the original report present. “Create or inspect a symbolic link using ln -s and an appropriate listing, then distinguish removal of the link from removal of the target” would remedy that alternative situation, but it would not correct the present issue: the intended group can enter the authorized directory and open permitted files while unrelated accounts remain blocked.
“Use an appropriately authorized chown operation to set the intended owner and inspect the result with a long listing” is the supported response when the filename reports the new account as owner while the original document bytes remain unchanged after the metadata change. Here the decisive response is “Grant the minimum search or execute permission needed to traverse the intended directory and preserve appropriate protections on its files”, so that different intervention does not meet the stated requirement.
Two users can create their own temporary files, but an ordinary unrelated user cannot remove the other's protected entry. “Use the appropriate sticky-bit directory permissions for an approved shared temporary directory without making all individual files public” applies to that other condition. The reported evidence is a learner grants read permission on a shared directory but removes its execute permission, after which colleagues can see directory names yet cannot enter it or open files; this alternative would address the wrong dependency.