Skip to content

Install the Samba Common Package

An XCCDF Rule

Description

The samba-common package should be installed. The samba-common package can be installed with the following command:

$ sudo dnf install samba-common

Rationale

If the samba-common package is not installed, samba cannot be configured.

ID
xccdf_org.ssgproject.content_rule_package_samba-common_installed
Severity
Medium
Updated



Remediation - Anaconda Pre-Install Instructions


package --add=samba-common

Remediation - OS Build Blueprint


[[packages]]
name = "samba-common"
version = "*"

Remediation - Ansible

- name: Ensure samba-common is installed
  package:
    name: samba-common
    state: present
  tags:
  - enable_strategy

Remediation - Shell Script


if ! rpm -q --quiet "samba-common" ; then
    dnf install -y "samba-common"
fi

Remediation - Puppet

include install_samba-common

class install_samba-common {
  package { 'samba-common':
    ensure => 'installed',
  }