Bird
0
0

Given a file with permissions -rwsr-xr-x, what special permission is set on this file?

medium📝 Command Output Q4 of 15
Linux CLI - File Permissions and Ownership
Given a file with permissions -rwsr-xr-x, what special permission is set on this file?
ASticky bit
BNo special permission
CSetgid
DSetuid
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the permission string

    The 's' in the user (owner) execute position indicates setuid is set.
  2. Step 2: Confirm special permission meaning

    Setgid would show 's' in group execute position, sticky bit affects directories.
  3. Final Answer:

    Setuid -> Option D
  4. Quick Check:

    Permission string '-rwsr-xr-x' = setuid [OK]
Quick Trick: 's' in user execute spot means setuid [OK]
Common Mistakes:
  • Confusing setuid with setgid
  • Thinking sticky bit applies to files
  • Ignoring the 's' in permissions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes