ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 371 - XK0-005 discussion

Report
Export

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

Answers
A.

systemctl mask postfix.service

B.

systemctl disable postfix.service

Answers
B.

systemctl disable postfix.service

C.

systemctl stop postfix.service

Answers
C.

systemctl stop postfix.service

D.

systemctl -n restart postfix.service

Answers
D.

systemctl -n restart postfix.service

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.

asked 18/10/2024
Joe Evanchak
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first