exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 381 discussion

Actual exam question from CompTIA's XK0-004
Question #: 381
Topic #: 1
[All XK0-004 Questions]

A Linux administrator experiences SELinux errors while troubleshooting a production web server. The administrator needs to disable SELinux to bring the production system back online quickly but still troubleshoot the SELinux issues. Which of the following commands would allow the administrator to achieve this goal?

  • A. setenforce 0
  • B. getenforce disable
  • C. getenforce permissive
  • D. setenforce 1
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
TonySparks1
2 years, 4 months ago
Selected Answer: A
I believe the answer should be A. setenforce 0 will put SELinux in permissive mode and then you can use the the getenforce command to ensure it is in permissive mode. The getenforce command let's you know whether the SELinux is in enforcing or permissive mode. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/using_selinux/changing-selinux-states-and-modes_using-selinux#changing-to-permissive-mode_changing-selinux-states-and-modes
upvoted 3 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