ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 59 - SK0-005 discussion

Report
Export

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?

A.
setenforce 0
Answers
A.
setenforce 0
B.
setenforce permissive
Answers
B.
setenforce permissive
C.
setenforce 1
Answers
C.
setenforce 1
D.
setenforce disabled
Answers
D.
setenforce disabled
Suggested answer: A

Explanation:

The command that the administrator should issue to configure MySQL successfully is setenforce 0. This command sets the SELinux (Security-Enhanced Linux) mode to permissive, which means that SELinux will not enforce its security policies and will only log any violations. SELinux is a feature that provides mandatory access control (MAC) for Linux systems, which can enhance the security and prevent unauthorized access or modification of files and processes. However, SELinux can also interfere with some applications or services that require specific permissions or ports that are not allowed by SELinux by default. In this case, MySQL may not be able to run properly due to SELinux restrictions. To resolve this issue, the administrator can either disable SELinux temporarily by using setenforce 0, or permanently by editing the /etc/selinux/config file and setting SELINUX=disabled. Alternatively, the administrator can configure SELinux to allow MySQL to run by using commands such as semanage or setsebool.

Reference:

https://blogs.oracle.com/mysql/selinux-and-mysql-v2

asked 02/10/2024
Nivi Kolatte
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first