CompTIA Linux+ Powered by LPI (LX0-103) — Question 43
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 lacks the execute permission, which means the SetUID bit has no effect. Option A is incorrect as the SetUID cannot be applied without the execute permission for the owner. Option B is incorrect because the command will not execute with group rights without the owner's execute permission. Option D is also wrong for the same reason that without the owner's execute permission, the command cannot run with effective rights from either the owner or the group.