Skip to content

Uninstall Samba Package

An XCCDF Rule

Description

The samba package can be removed with the following command:

 $ sudo dnf erase samba

Rationale

If there is no need to make the Samba software available, removing it provides a safeguard against its activation.

ID
xccdf_org.ssgproject.content_rule_package_samba_removed
Severity
Unknown
References
Updated



Remediation - Anaconda Pre-Install Instructions


package --remove=samba

Remediation - Ansible

- name: Ensure samba is removed
  package:
    name: samba
    state: absent
  tags:
  - CCE-85979-3

Remediation - Puppet

include remove_samba

class remove_samba {
  package { 'samba':
    ensure => 'purged',
  }

Remediation - Shell Script


# CAUTION: This remediation script will remove samba
#	   from the system, and may remove any packages
#	   that depend on samba. Execute this
#	   remediation AFTER testing on a non-production
#	   system!