CompTIA Server+ (SK0-004) — Question 46
Which of the following represents the directory permissions to provide least privilege for publicly readable directories on a Unix web server?
Answer options
- A. rwxrwxrwx (777)
- B. rwxrwx-w- (772)
- C. rwxrwxr-x (775)
- D. rwxrwx-x (771)
Correct answer: C
Explanation
The correct answer is C, rwxrwxr-x (775), as it allows the owner and group to have full permissions while giving only read and execute permissions to others, which is ideal for maintaining least privilege. Option A (777) grants full permissions to everyone, which is insecure, while Option B (772) and D (771) restrict permissions unnecessarily for the group or others, limiting functionality.