CompTIACompTIA
XK0-005 · Question #883
XK0-005 Question #883: Real Exam Question with Answer & Explanation
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.
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.