Bird
0
0

What does the setuid permission do on an executable file?

easy📝 Conceptual Q11 of 15
Linux CLI - File Permissions and Ownership
What does the setuid permission do on an executable file?
ARuns the program with the file owner's permissions
BAllows anyone to delete the file
CMakes new files inherit the folder's group
DPrevents the file from being executed
Step-by-Step Solution
Solution:
  1. Step 1: Understand setuid purpose

    The setuid permission allows a program to run with the permissions of the file owner, not the user running it.
  2. Step 2: Compare options with setuid behavior

    Only Runs the program with the file owner's permissions correctly describes this behavior; others describe different permissions or incorrect effects.
  3. Final Answer:

    Runs the program with the file owner's permissions -> Option A
  4. Quick Check:

    setuid = runs as owner [OK]
Quick Trick: Setuid means run as file owner, not current user [OK]
Common Mistakes:
  • Confusing setuid with sticky bit
  • Thinking setuid changes file deletion rights
  • Mixing setuid with setgid effects

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes