Skip to content

Uninstall vsftpd Package

An XCCDF Rule

Description

The vsftpd package can be removed with the following command:

 $ sudo zypper remove vsftpd

Rationale

Removing the vsftpd package decreases the risk of its accidental activation.

ID
xccdf_org.ssgproject.content_rule_package_vsftpd_removed
Severity
High
References
Updated



Remediation - Shell Script


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

Remediation - Ansible

- name: Ensure vsftpd is removed
  package:
    name: vsftpd
    state: absent
  tags:
  - CCE-83226-1

Remediation - Puppet

include remove_vsftpd

class remove_vsftpd {
  package { 'vsftpd':
    ensure => 'purged',
  }