Skip to content

Create Warning Banners for All FTP Users

An XCCDF Rule

Description

Edit the vsftpd configuration file, which resides at /etc/vsftpd.conf by default. Add or correct the following configuration options:

banner_file=/etc/issue

Rationale

This setting will cause the system greeting banner to be used for FTP connections as well.

ID
xccdf_org.ssgproject.content_rule_ftp_present_banner
Severity
Medium
References
Updated



Remediation - Shell Script



# Strip any search characters in the key arg so that the key can be replaced without
# adding any search characters to the config file.
stripped_key=$(sed 's/[\^=\$,;+]*//g' <<< "^banner_file")


Remediation - Ansible

- name: Service facts
  service_facts: null
  tags:
  - CCE-83059-6
  - DISA-STIG-SLES-12-030010
  - ftp_present_banner