XK0-005 Domain 2: Security

Which command sets SELinux mode enforcing temporarily?

Multiple choice — select one answer

Answer choices

  1. a. ban IP via iptables/nftables integration
  2. b. 600
  3. c. MaxAuthTries in sshd_config
  4. d. setenforce 1

Architectural breakdown & explanation

setenforce toggles enforcing/permissive until reboot if not persistent.

Correct answer(s): d. setenforce 1

Exam domain: Domain 2: Security (21% weight on the official guide).

Official documentation & study links

Practice this certification

This page is one question from the CompTIA Linux+ bank. Run a full timed practice exam with domain-weighted random questions in your browser.