Frequent Question: How Do I Mask a Service in Linux?
Contents

How do I unmask a service in Linux?

Use the systemctl unmask command to unmask the service unit. [[email protected] ~]# systemctl unmask sendmail Removed /etc/systemd/system/sendmail. service. Note: A disabled service can be started manually or by other unit files but it does not start automatically at boot.

What does masking a service do in Linux?

Masking a service prevents the service from being started manually or automatically. For this example, systemctl is creating a symlink from /etc/systemd/system/sshd. service to /dev/null . Targets in /etc/systemd override those provided by packages in /lib/systemd .

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest