How to run proftpd in debug mode

If you are having any issues logging in, or uploading files, creating directories, etc.. you can run proftpd in debug mode to see what the proftpd server is doing and possibly find out why it's generating the errors it is.

To do so, type the following:

/etc/init.d/proftpd stop
proftpd -n -d 20

This will stop proftpd and then start it up in the console in debug mode.  Note on freebsd, you'd use "/usr/local/etc/rc.d/proftpd stop" to stop proftpd.

Then use whatever client again to generate the error.  Proftpd will dump out a lot of information.  The errors you want usually happen right near the bottom of all of the output.  Once you find what you need, press ctrl-c to quit the daemon.  DA should automatically start proftpd up again in normal mode within a minute, or just start it with the same command as above, but with "start" instead of "stop.


Was this article helpful?

mood_bad Dislike 2
mood Like 0
visibility Views: 29410