Skip to main content
Linux AdministrationMediumSingle Choice

Linux Administration Question

Statement

What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?

#setuid#permissions#binary#effective-uid
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.

Correct
D

The command will be executed with the effective rights of the owner and group.

Resolution & Explanations

The uppercase 'S' indicates the SetUID bit is set, but the owner execute bit ('x') is missing, rendering the SetUID bit ineffective.