Services and User Management

A security policy requires that cups.service must never run on a print-free server. It must not be started manually by an administrator or pulled in as a dependency of another unit. Which command BEST meets this requirement?

Show the answer

Correct answerC. systemctl mask cups.service

Masking links the unit file to /dev/null, so systemd refuses to start it by any means, including manual starts and dependencies. Disable --now only removes the boot-time links and stops the running instance, so a manual start or a dependency can still launch it.