Uninstall Samba Package
An XCCDF Rule
Description
Thesamba
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 Templates
Anaconda Pre-Install Instructions
package --remove=samba
An Ansible Snippet
- name: Ensure samba is removed
package:
name: samba
state: absent
tags:
- CCE-80278-5
A Puppet Snippet
include remove_samba
class remove_samba {
package { 'samba':
ensure => 'purged',
}
}
A 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!