Difficulty: Easy
Correct Answer: chmod u = rwx, g = rw, o = x letter
Explanation:
Introduction / Context:
File permissions in UNIX can be specified numerically (octal) or symbolically. Understanding the mapping between octal digits and read/write/execute bits helps you interpret and apply correct access controls quickly and accurately.
Given Data / Assumptions:
Concept / Approach:
The octal mode 761 translates as: user 7 (4+2+1 = rwx), group 6 (4+2 = rw-), other 1 (001 = --x). Symbolic mode expresses the same as u=rwx, g=rw, o=x. Either style yields the same permission bits when applied with chmod.
Step-by-Step Solution:
Verification / Alternative check:
Use stat -c %A letter to view human-readable permissions and stat -c %a letter to confirm numeric mode 761 after the change.
Why Other Options Are Wrong:
a: The syntax chmod 4=7, g=6, o=1 is invalid and mixes numbers erroneously.
b: a=761 is not a valid symbolic-mode assignment; numeric modes are applied without a=.
d: 167 reorders the bits incorrectly; the intended value is 761.
e: Not applicable because the correct symbolic mapping is u=rwx, g=rw, o=x.
Common Pitfalls:
Confusing the order of user/group/other, misapplying execute bits on regular files, and forgetting that directories need x for traversal. Symbolic modes can add (+) or remove (-) bits for incremental changes.
Final Answer:
chmod u = rwx, g = rw, o = x letter
Discussion & Comments