What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?
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.
题解
当「s」出现在拥有者的运行权限时,表示这个文件拥有 SUID(SetUID) 的作用,SUID 可以让任何用户运行这个文件的时候都能有这个文件的拥有者权限。「S」表示文件拥有 SUID(SetUID) 的作用,但拥有者并没有文件的运行权限,而「s」才是拥有者有文件的运行权限,因此这题答案是选项 C。
