nerdexam
CompTIA

XK0-005 · Question #883

Due to some errors, a Linux administrator needs to permanently disable SELinux on one of the development machines for the time of testing. Which of the following should the administrator do to…

The correct answer is D. Edit the "/etc/selinux/config" file and restart the system. Changing SELINUX=enforcing to SELINUX=disabled in /etc/selinux/config and then rebooting is the only way to persistently disable SELinux; setenforce only takes effect until the

System Management

Question

Due to some errors, a Linux administrator needs to permanently disable SELinux on one of the development machines for the time of testing. Which of the following should the administrator do to accomplish this task?

Options

  • AUse "setenforce disabled" command and restart the system.
  • BUse "setenforce 1" command.
  • CUse "systemctl selinux" command.
  • DEdit the "/etc/selinux/config" file and restart the system.

How the community answered

(26 responses)
  • B
    4% (1)
  • C
    4% (1)
  • D
    92% (24)

Explanation

Changing SELINUX=enforcing to SELINUX=disabled in /etc/selinux/config and then rebooting is the only way to persistently disable SELinux; setenforce only takes effect until the

Topics

#SELinux#Linux administration#System configuration#Persistent settings

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice