Bird
0
0

You want to secure a directory so only the owner can list and access files inside, but others can still enter the directory without seeing contents. Which permission setting achieves this?

hard📝 Application Q15 of 15
Linux CLI - File Permissions and Ownership
You want to secure a directory so only the owner can list and access files inside, but others can still enter the directory without seeing contents. Which permission setting achieves this?
Achmod 711 directory
Bchmod 777 directory
Cchmod 755 directory
Dchmod 700 directory
Step-by-Step Solution
Solution:
  1. Step 1: Understand directory permissions

    Read (r) allows listing contents, execute (x) allows entering the directory.
  2. Step 2: Match permissions to requirement

    711 means owner has rwx, others have execute only (can enter but not list files).
  3. Final Answer:

    chmod 711 directory -> Option A
  4. Quick Check:

    Execute only for others = enter but no list [OK]
Quick Trick: Execute without read lets others enter but not list [OK]
Common Mistakes:
  • Using 700 which blocks others from entering
  • Using 755 which allows others to list files
  • Using 777 which gives full access to everyone

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes