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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • 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 grep with color output
  2. How to effectively use Man Pages under Linux
  3. How to allow ssh with empty passwords in Linux
  4. lscpu Command Examples in Linux
  5. Installing CentOS / RHEL 7 (step by step with screen shots)
  6. Linux / UNIX : Examples of find command to find files with specific sets of permissions
  7. Kernel Logs Warning Messages “kernel: Possible SYN flooding on port X. Sending cookies” is logged”
  8. How to remove the noatime mount option from root mount point without reboot (CentOS/RHEL)
  9. Beginners Guide to Udev in Linux
  10. CentOS / RHEL : How to set up chroot jail SFTP

You May Also Like

Primary Sidebar

Recent Posts

  • JavaFX ComboBox: Set a value to the combo box
  • Nginx load balancing
  • nginx 504 gateway time-out
  • Images preview with ngx_http_image_filter_module

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright