Skip to content

Disable the CUPS Service

An XCCDF Rule

Description

The cups service can be disabled with the following command:
$ sudo systemctl mask --now cups.service

Rationale

Turn off unneeded services to reduce attack surface.

ID
xccdf_org.ssgproject.content_rule_service_cups_disabled
Severity
Unknown
References
Updated

Remediation Templates

A Puppet Snippet

include disable_cups
class disable_cups {
  service {'cups':
    enable => false,
    ensure => 'stopped',
  }
}

OS Build Blueprint

[customizations.services]
masked = ["cups"]

An Ansible Snippet

- name: Gather the package facts
  package_facts:
    manager: auto
  tags:
  - NIST-800-53-CM-6(a)
  - NIST-800-53-CM-7(a)