Bird
0
0

A user cannot write to a file even though the permissions show '-rw-rw-r--'. What could be the cause?

medium📝 Debug Q7 of 15
Linux CLI - File Permissions and Ownership
A user cannot write to a file even though the permissions show '-rw-rw-r--'. What could be the cause?
AThe user forgot to log in
BThe file is set to read-only mode by the system
CThe file is a symbolic link
DThe user is not the owner or in the group owning the file
Step-by-Step Solution
Solution:
  1. Step 1: Interpret permissions

    '-rw-rw-r--' means owner and group can read/write, others can read only.
  2. Step 2: Check user identity

    If user is neither owner nor in group, they only have others' permissions (read only), so cannot write.
  3. Final Answer:

    The user is not the owner or in the group owning the file -> Option D
  4. Quick Check:

    User identity affects write permission = C [OK]
Quick Trick: Write permission depends on user ownership or group membership [OK]
Common Mistakes:
MISTAKES
  • Assuming all users can write if permission shows rw
  • Ignoring group membership
  • Confusing symbolic link behavior

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes