Difficulty: Easy
Correct Answer: chmod u - x, go + r letter
Explanation:
Introduction / Context:
Unix/Linux file permissions control access for the user (owner), group, and others. The chmod command supports symbolic changes that precisely add or remove specific rights without overwriting other bits. This question checks your ability to translate a verbal permission change into the correct chmod syntax.
Given Data / Assumptions:
Concept / Approach:
Symbolic modes allow granular updates: u, g, o designate classes; + adds a permission; - removes it. You can combine multiple operations in one command by separating them with a comma, and chmod applies them left to right to the file's mode bits.
Step-by-Step Solution:
Verification / Alternative check:
Before and after comparisons using ls -l show x removed from the user field and r added to the group and others fields. No other bits should change because symbolic mode modifies only specified bits.
Why Other Options Are Wrong:
Common Pitfalls:
Using an absolute numeric mode (like 744) which may inadvertently change other bits, or reversing + and - signs under time pressure. Always read the requirement carefully.
Final Answer:
chmod u - x, go + r letter
Discussion & Comments