• 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. sort Command Examples in Linux
  2. slocate command in linux
  3. loginctl: command not found
  4. How to Configure NFS Services (server-side) to Run on Static Ports as an Alternative CentOS/RHEL 7
  5. nano: command not found
  6. vdir: command not found
  7. CentOS / RHEL 7 : How to set date, time / NTP and timezone using timedatectl
  8. CentOS / RHEL 7 : Never run the iptables service and FirewallD service at the same time!
  9. isosize: command not found
  10. Encrypted vSphere vMotion

You May Also Like

Primary Sidebar

Recent Posts

  • ncat Command Examples in Linux
  • ncat: command not found
  • nautilus Command Examples in Linux
  • namei: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright