ExamGecko
Home Home / CompTIA / XK0-005

CompTIA XK0-005 Practice Test - Questions Answers, Page 38

Question list
Search
Search

Related questions











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?

A.

systemctl mask postfix.service

A.

systemctl mask postfix.service

Answers
B.

systemctl disable postfix.service

B.

systemctl disable postfix.service

Answers
C.

systemctl stop postfix.service

C.

systemctl stop postfix.service

Answers
D.

systemctl -n restart postfix.service

D.

systemctl -n restart postfix.service

Answers
Suggested answer: A

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.

Total 371 questions
Go to page: of 38