Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

i'm using vsftp on ubuntu 9.04 Is it possible to send an email whenever a user uploads a file to a particular folder using ftp?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

I don't think vsftpd itself has anything that will do this for you. Most likely you'll have to write / find a script that will watch a particular directory for files, and email it from there.

share|improve this answer
Exactly wht i thought! :-) thanks. –  Senthil Kumar Apr 28 '10 at 12:25

You can enable logging for vsftp and then look for files being uploaded in taget directory.


 tail -F /var/log/vsftpd.log | while read line; do
     if echo "$line" | grep -q '/path/to/target/folder'; then
          echo "File is uploaded" | /usr/sbin/sendmail "";
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.