Difficulty: Easy
Correct Answer: 755
Explanation:
Introduction / Context:
File permissions on UNIX and Linux systems are commonly set using octal notation with chmod. Each digit represents a triad of permissions (read, write, execute) for owner, group, and others. Mastering octal mappings streamlines secure defaults for scripts, binaries, and web content.
Given Data / Assumptions:
Concept / Approach:
Compute each triad: owner rwx = 4+2+1 = 7; group r-x = 4+0+1 = 5; others r-x = 4+0+1 = 5. Concatenate digits as owner/group/others to obtain 755. This is a common setting for executable scripts and directories where users should traverse but not modify.
Step-by-Step Solution:
Verification / Alternative check:
Command example: chmod 755 file then verify with ls -l, which should display -rwxr-xr-x for a regular file.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
755.
Discussion & Comments