Linux Foundation Certified System Administrator (LFCS) — Question 90
What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?
Answer options
- A. The command is SetUID and it will be executed with the effective rights of the owner.
- B. The command will be executed with the effective rights of the group instead of the owner.
- C. The execute flag is not set for the owner. Therefore the SetUID flag is ignored.
- D. The command will be executed with the effective rights of the owner and group.
Correct answer: C
Explanation
The correct answer is C because the owner does not have the execute permission, which means the SetUID bit cannot be activated. Options A and D are incorrect as they imply the SetUID flag would take effect, and option B is wrong because it suggests the command runs with group rights instead of owner rights, which is not applicable without the owner's execute permission.