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
Updated

Remediation Templates

An Ansible Snippet

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

script:kickstart

package install samba-common

OS Build Blueprint

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

script:bootc

dnf install samba-common

A Puppet Snippet

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

Anaconda Pre-Install Instructions

package --add=samba-common

A Shell Script

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