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 - OS Build Blueprint
[customizations.services]
enabled = ["sssd"]
Remediation - Ansible
- name: Gather the package facts
package_facts:
manager: auto
tags:
- CCE-80363-5
- NIST-800-53-CM-6(a)
Remediation - 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'
Remediation - Puppet
include enable_sssd
class enable_sssd {
service {'sssd':
enable => true,
ensure => 'running',