• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Enable Verbose Logging for VSFTPD

By admin

The main configuration file for VSFTPD is ‘/etc/vsftpd/vsftpd.conf‘. When verbose logging is enabled you need to disable the normal logging option, i.e xferlog_std_format=NO.

Below are the 2 options, that come in picture while configuring the logging in vsftpd.

  • xferlog_std_format — When enabled in conjunction with xferlog_enable, the log is written to the file specified in the xferlog_file directive (/var/log/xferlog by default)
  • log_ftp_protocol — When enabled in conjunction with xferlog_enable and with xferlog_std_format set to NO, all FTP commands and responses are logged in /var/log/vsftpd.log.

1. By default the logging is enabled through the below entry.

# vi /etc/vsftpd/vsftpd.conf
xferlog_std_format=YES

2. However this will show only file activity. If you require more verbose logging, including connections and commands you will need to add the line below:

# vi /etc/vsftpd/vsftpd.conf
log_ftp_protocol=YES

3. As discussed earlier, set the parameter xferlog_std_format as NO, to disable normal logging.

# vi /etc/vsftpd/vsftpd.conf
xferlog_std_format=YES
Note: When this is enabled, all FTP requests and responses are logged. This is very useful for debugging. You may comment out this line once you are done with the debugging.

Filed Under: CentOS/RHEL 6, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. How to verify if NX/XD is Enabled or Disabled in CentOS/RHEL 7 and 8
  2. UNIX / Linux : how to force user to change their password on next login after password has reset
  3. Change default kernel (boot with old kernel) in CentOS/RHEL/OEL 5 and 6
  4. How to Change Timezone from CST To EST in CentOS/RHEL 7 Server
  5. CentOS / RHEL 6,7 : How to recover an interrupted yum package installation
  6. Troubleshooting “connection refused” From Remote Servers in CentOS/RHEL 7 (Either Firewalld or iptables service issue)
  7. How to install rsyslog7 when rsyslog5 is already installed in CentOS/RHEL
  8. How to configure Linux Resource Groups (cgroups) for MySQL
  9. How to modify snmp service to listen to an alternative port in CentOS/RHEL
  10. How to configure resource groups for MySQL Server running on Linux

You May Also Like

Primary Sidebar

Recent Posts

  • How to set the default character set in MySQL and how to propagate it in a master-master replication scenario
  • “Connection reset by peer” – error while ssh into a CentOS/RHEL system with a specific user only
  • MySQL: how to figure out which session holds which table level or global read locks
  • Recommended Configuration of the MySQL Performance Schema
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary