Skip to content

Enable the SSSD Service

An XCCDF Rule

Description

The SSSD service should be enabled. The sssd service can be enabled with the following command:
$ sudo systemctl enable sssd.service
ID
xccdf_org.ssgproject.content_rule_service_sssd_enabled
Severity
Medium
References
Updated

Remediation Templates

OS Build Blueprint

[customizations.services]
enabled = ["sssd"]

A Puppet Snippet

include enable_sssd
class enable_sssd {
  service {'sssd':
    enable => true,
    ensure => 'running',
  }
}

A Shell Script

# Remediation is applicable only in certain platforms
if rpm --quiet -q sssd-common && { [ ! -f /.dockerenv ] && [ ! -f /run/.containerenv ]; }; then
SYSTEMCTL_EXEC='/usr/bin/systemctl'
"$SYSTEMCTL_EXEC" unmask 'sssd.service'
"$SYSTEMCTL_EXEC" start 'sssd.service'
"$SYSTEMCTL_EXEC" enable 'sssd.service'

An Ansible Snippet

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