Difficulty: Easy
Correct Answer: group has read permission only
Explanation:
Introduction / Context:
UNIX file metadata shows three permission triads in ls -l output: owner, group, and others. Correctly interpreting the second triad is essential for understanding which users can read, write, or execute a file within a shared group, influencing collaboration and security settings.
Given Data / Assumptions:
Concept / Approach:
The second triad applies to the file's owning group. If it reads r--, it grants the group read-only access (no write, no execute). The first triad affects the owner; the third affects all other users. Therefore, r-- in the middle position means “group has read permission only.”
Step-by-Step Solution:
Verification / Alternative check:
Use stat -c %A file (Linux) or ls -l to confirm triad positions; modify with chmod g+r,g-wx file to explicitly set group read-only and verify result.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
group has read permission only.
Discussion & Comments