Skip to content

Uninstall Samba Package

An XCCDF Rule

Description

The samba package can be removed with the following command:

 $ sudo yum 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:
  - disable_strategy

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!