nerdexam
CompTIACompTIA

XK0-005 · Question #135

XK0-005 Question #135: Real Exam Question with Answer & Explanation

The correct answer is B: setenforce 0. In sudo setenforce 0, you can use permissive instead of 0. This command changes SELinux mode from targeted to permissive. In permissive mode, the service is active and audits all actions. However, it does not enforce any security policies.

Troubleshooting

Question

A Linux systems administrator installed a new web server, which failed while attempting to start. The administrator suspects that SELinux is causing an issue and wants to temporarily put the system into permissive mode. Which of the following would allow the administrator to accomplish this?

Options

  • Aecho SELINUX=PERMISSIVE >> /etc/sysconfig/selinux
  • Bsetenforce 0
  • Csestatus 0
  • Dchcon httpd_sys_content_t /var/

Explanation

In sudo setenforce 0, you can use permissive instead of 0. This command changes SELinux mode from targeted to permissive. In permissive mode, the service is active and audits all actions. However, it does not enforce any security policies.

Topics

#SELinux#Troubleshooting#System Management

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions