Bird
0
0

A user tries to run chgrp -R developers /home/user/project but only some files change group. What could be the reason?

medium📝 Debug Q7 of 15
Linux CLI - File Permissions and Ownership
A user tries to run chgrp -R developers /home/user/project but only some files change group. What could be the reason?
AThe developers group does not exist
BThe -R option only changes the top directory group
CThe command syntax is incorrect
DUser lacks permission on some files or directories inside the path
Step-by-Step Solution
Solution:
  1. Step 1: Understand recursive group change

    The -R option attempts to change group on all files and directories recursively.
  2. Step 2: Identify permission issues

    If the user lacks permission on some files, those files will not change group, causing partial success.
  3. Final Answer:

    User lacks permission on some files or directories inside the path -> Option D
  4. Quick Check:

    Partial change = permission issues on some files [OK]
Quick Trick: Partial recursive changes usually mean permission problems [OK]
Common Mistakes:
MISTAKES
  • Thinking -R only affects top directory
  • Assuming group missing causes partial change
  • Believing syntax error causes partial change

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes