CompTIA Security+ (SY0-601) — Question 598
A penetration test revealed that several Linux servers were misconfigured at the file level and access was granted incorrectly. A security analyst is referencing the instructions in the incident response runbook for remediation information. Which of the following is the best command to use to resolve the issue?
Answer options
- A. chmod
- B. cat
- C. grep
- D. dig
Correct answer: A
Explanation
The command 'chmod' is used to change file permissions in Linux, making it the most suitable choice for correcting misconfigured access issues. The 'cat' command is for displaying file contents, 'grep' is used for searching text, and 'dig' is a DNS lookup tool, none of which can fix file permission problems.