A Linux administrator needs to disable the Sendmail service on a Linux server and prevent it from being started manually and during boot. Which of the following is the BEST command to do this?
Use caution when employing the systemctl mask
command on a service. This links the service to the /dev/null
(black hole) to prevent any kind of service startup. This has been
described as the “third level of off.” You will not be able to start
the service manually. Also, the service will not start at boot time
if you did not employ the ––running option when you used mask
on it. You
https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units
Masking and Unmasking Units
We saw in the service management section how to stop or disable a service, but systemd also has the ability to mark a unit as completely unstartable, automatically or manually, by linking it to /dev/null. This is called masking the unit, and is possible with the mask command
B should be the right answer as mask prevent the designated unit to be started with the start (manual start) and a system boot.
upvoted 4 times
...
This section is not available anymore. Please use the main Exam Page.XK0-004 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
[Removed]
Highly Voted 4 years, 3 months agoJosiahJ
Highly Voted 4 years, 3 months agoCarlosC
Most Recent 3 years, 3 months agoCarlosC
3 years, 3 months agoNathanf123
3 years, 6 months agoNathanf123
3 years, 5 months agoo0o0
4 years, 2 months ago