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
script:bootc
dnf remove samba
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!
A Puppet Snippet
include remove_samba
class remove_samba {
package { 'samba':
ensure => 'purged',
}
}
An Ansible Snippet
- name: Ensure samba is removed
package:
name: samba
state: absent
tags:
- CCE-85978-5
script:kickstart
package remove samba
Anaconda Pre-Install Instructions
package --remove=samba