exam questions

Exam SK0-005 All Questions

View all questions & answers for the SK0-005 exam

Exam SK0-005 topic 1 question 58 discussion

Actual exam question from CompTIA's SK0-005
Question #: 58
Topic #: 1
[All SK0-005 Questions]

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
  • B. setenforce permissive
  • C. setenforce 1
  • D. setenforce disabled
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference:
https://blogs.oracle.com/mysql/selinux-and-mysql-v2

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
RBL23168
5 months, 2 weeks ago
The getenforce command is used to check the current status of SELinux (Security-Enhanced Linux) on a system. The output "Enforcing" indicates that SELinux is currently in enforcing mode, which may restrict certain operations. To configure MySQL successfully, the administrator can temporarily set SELinux to permissive mode, which allows policy violations to be logged but not enforced. The correct command for this is: B. setenforce permissive This command will set SELinux to permissive mode, allowing the administrator to identify and address any SELinux policy violations related to MySQL without enforcing strict policies. After configuring MySQL, it's generally a good practice to set SELinux back to enforcing mode for enhanced security, using the command: C. setenforce 1 This will set SELinux back to enforcing mode
upvoted 1 times
...
RBL23168
5 months, 2 weeks ago
A. setenforce 0. This command sets SELinux to "Permissive" mode. In Permissive mode, SELinux does not deny access but logs AVC (Access Vector Cache) messages. It's useful for troubleshooting and understanding how SELinux would behave without actually enforcing any denials.
upvoted 2 times
...
Nasiiim
9 months, 1 week ago
The answer is A Setenforce 0: to change to permissive mode Setenforce 1: to change to enforcing mode
upvoted 1 times
...
jjwelch00
11 months, 4 weeks ago
"setenforce 0" sets SELinux to "disabled" mode, which completely turns off SELinux enforcement. "setenforce permissive" sets SELinux to "permissive" mode, which allows SELinux to log policy violations but does not block any actions. "setenforce 1" sets the SELinux enforcement to "enforcing" mode, which means SELinux policy rules are actively enforced. "setenforce disabled" sets the SELinux enforcement to "disabled" mode, which means SELinux policy rules are not enforced at all, and the system falls back to standard Unix permissions.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago