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 yum 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
References
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:
  - CCE-80360-1

Remediation - Puppet

include install_samba-common

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

Remediation - Shell Script


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