CompTIA Server+ (SK0-005) — Question 43
A server administrator is experiencing difficulty configuring MySQL on a Linux server. The administrator issues the getenforce command and receives the following output:
># Enforcing
Which of the following commands should the administrator issue to configure MySQL successfully?
Answer options
- A. setenforce 0
- B. setenforce permissive
- C. setenforce 1
- D. setenforce disabled
Correct answer: A
Explanation
The command 'setenforce 0' changes the SELinux mode to permissive, allowing MySQL to operate without enforcement of security policies, which is necessary for successful configuration. The other options either maintain the enforcing state or set it to a mode that still enforces security policies, which would not resolve the configuration issues.