Can someone tell me where is located the log file for vsftpd? I'm trying to learn how to install and configure a ftp server and I can't seem to find the log file. Can anybody tell me how to configure the service to make a log file or where is located?
The log file for Ubuntu by default is
/var/log/vsftpd.log
. The setting is in/etc/vsftpd.conf
The default could be modified by specifying a different pathname (
/etc/vsftp.conf
entry):The logging of vsftpd is a bit more complex than other responses show. There are three logging mechanism, here is an example config of
/etc/vsftpd.conf
where I have added some comments for self-explanation:Once modified at your discretion, you must do a:
service vsftpd restart
Due to the amount of logging generated, you might want to disable it as soon as you are finished debugging. More specifically, reverting to
syslog_enable=YES
will move back to logging into RAM ringbuffer in OpenWrt and avoid wear out flash.Sometimes it happens that the log is not filling any data, because the file doesn't exist. Create a log file:
Then