VSFTPD debug or enable verbose logging on VSFTPD server

FTP2

VSFTPD is a file transfer server provides file transmission over FTP. Having some issue with the VSFTPD server will require to troubleshoot the VSFTPD daemon. This article provides a precise steps to enable VSFTPD verbose logging which is required for troubleshooting FTP issues.

Topic

  • How to enable verbose logging on a VSFTPD server?
  • How to debug Linux VSFTPD server?

apt

  • Linux
  • Centos
  • RHEL
  • Ubuntu
  • Debian
  • Suse
  • Arch Linux

Solution


In order to enable verbose logging, redirect all verbose logs to /var/log/vsftpd.log file. Add the following entries in /etc/vsftpd.conf file.

dual_log_enable=YES
xferlog_enable=YES
xferlog_std_format=YES
xferlog_file= /var/log/vsftpd.log
vsftpd_log_file= /var/log/vsftpd.log

Then restart vsftpd service

# service vsftpd restart

or if applicable

 systemctl restart vsftpd


Testing

  • On a client system, make FTP transaction
  • On the server system check /var/log/vsftpd.log file for VSFTPD verbose logs.

You May Also Like

avatar

About the Author: TekFik

TekFik is a technical blogging site helps techies and engineers to solve their day to day issues and also allows everyone to share knowledge and feedback. Please feel free to contact us at tekfik.rd@gmail.com if there is anything.

Leave a Reply

Your email address will not be published. Required fields are marked *