Difficulty: Easy
Correct Answer: chmod
Explanation:
Introduction / Context:
File security in UNIX is enforced through ownership (user and group) and permissions (read, write, execute) for user, group, and others. Correctly choosing the tool for permission changes prevents configuration drift and security lapses.
Given Data / Assumptions:
Concept / Approach:
The chmod command sets permission bits using octal or symbolic modes. chown changes file owner (and optionally group). chgrp changes the group association. There is no standard command named chusr.
Step-by-Step Solution:
Verification / Alternative check:
Run stat file to view detailed mode bits and confirm chmod changes applied as expected.
Why Other Options Are Wrong:
a: chgrp changes the group owner, not permission bits.
b: chown changes user/group ownership, not the permissions.
d: chusr is not a standard UNIX command.
e: Not applicable because chmod is correct.
Common Pitfalls:
Using chmod = (assignment) when intending to add or remove bits; forgetting execute bits on directories; omitting -R for nested trees.
Final Answer:
chmod
Discussion & Comments