Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .