How to enable verbose logging in pure-ftpd on Debian Linux

Friday, July 24, 2009 posted by admin

To turn on verbose logging (e.g. to debug FTP connection or authentication problems) in  pure-ftpd FTP server on Debian and Ubuntu Linux, execute the following command as root user in the shell:

echo 'yes' > /etc/pure-ftpd/conf/VerboseLog

and then restart pure-ftpd

/etc/init.d/pure-ftpd-mysql restart

The debug output will be logged to syslog. To view the log content, execute:

tail -n 100 /var/log/syslog

To disable verbose logging, execute these commands:

rm -f /etc/pure-ftpd/conf/VerboseLog
/etc/init.d/pure-ftpd-mysql restart

Be Sociable, Share!

4 Responses to “How to enable verbose logging in pure-ftpd on Debian Linux”

  1. Bob says:

    Ta, just what I needed to know .. niow just got to work out what

    pure-ftpd: (?@?) [ERROR] Sorry, invalid address given

    means :)

  2. Paranormal says:

    thanks for this guide
    but how can i change the log file
    i want puer-ftpd to verbose logging in separate file


    • Till says:

      From pure-ftpd documnentation:

      Log messages are sent to the syslog daemon. You can disable logging with
      ‘-f none’.
      If you want all FTP messages to be redirected to a file, say /var/log/ftp,
      add this line to your /etc/syslog.conf file:

      ftp.* /var/log/ftp

      Then restart your syslogd daemon:

      killall -HUP syslogd

Leave a Reply