Bird
0
0

You want to set a file permission so that the user has all permissions, the group can read and execute only, and others have no permissions. Which permission notation should you use?

hard📝 Application Q15 of 15
Linux CLI - File Permissions and Ownership
You want to set a file permission so that the user has all permissions, the group can read and execute only, and others have no permissions. Which permission notation should you use?
Arwxr-x---
Brwxrwxr--
Crwxr-----
Drwxr-xr-x
Step-by-Step Solution
Solution:
  1. Step 1: Define permissions for each group

    User: all permissions = rwx
    Group: read and execute = r-x
    Others: no permissions = ---
  2. Step 2: Combine the permission groups

    Concatenate user, group, others: rwx + r-x + --- = rwxr-x---
  3. Final Answer:

    rwxr-x--- -> Option A
  4. Quick Check:

    User=all, Group=read+execute, Others=none [OK]
Quick Trick: Write permissions group by group: user, group, others [OK]
Common Mistakes:
MISTAKES
  • Giving others permissions when none required
  • Confusing write and execute for group
  • Mixing order of permission groups

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes