Question 580
A user working at a Linux terminal reports: A developer wants confidential notes to be readable only by their owner, but the file is mode 644 and any local user can read it. Which safe test outcome confirms the correction?
Explanation
Correct Answer
The owner can open and edit the note while an unrelated test user is denied reading it. This is specific evidence for the stated requirement. The explanation is: Mode 600 grants rw- to the owner and no permissions to group and others. The required action is: Apply chmod 600 to the confidential notes file for owner read/write only.
Incorrect Answers
The alternative measures an outcome associated with: The Linux filesystem execute permission controls whether an ordinary file may be launched as a program. It does not verify the stated failure. Here mode 600 grants rw- to the owner and no permissions to group and others. Confirm “The owner can open and edit the note while an unrelated test user is denied reading it”.
That observation would verify a different mechanism: Octal mode digits combine read 4, write 2 and execute 1 independently for owner, group and others. It would not establish whether the present failure was corrected, because mode 600 grants rw- to the owner and no permissions to group and others. Test “The owner can open and edit the note while an unrelated test user is denied reading it” instead.
This test can succeed without resolving the cause described here. It addresses: Directory execute permission permits pathname traversal; directory read permission alone does not grant file traversal. The relevant causal dependency is: Mode 600 grants rw- to the owner and no permissions to group and others. The required validation is “The owner can open and edit the note while an unrelated test user is denied reading it”.