nerdexam
CompTIACompTIA

XK0-005 · Question #1739

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

The correct answer is A: systemctl mask postfix.service. The systemctl mask postfix.service command prevents the Postfix service from being started manually or automatically by symlinking its service file to /dev/null. This ensures that even if a system restart or upgrade occurs, the service will remain disabled and will not start.

System Management

Question

A Linux administrator needs to harden a system and guarantee that the Postfix service will not run, even after a restart or system upgrade. Which of the following commands allows the administrator to fulfill the requirement?

Options

  • Asystemctl mask postfix.service
  • Bsystemctl disable postfix.service
  • Csystemctl stop postfix.service
  • Dsystemctl -n restart postfix.service

Explanation

The systemctl mask postfix.service command prevents the Postfix service from being started manually or automatically by symlinking its service file to /dev/null. This ensures that even if a system restart or upgrade occurs, the service will remain disabled and will not start.

Topics

#systemctl#service management#system hardening#Linux administration

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions