How To AutoDelete file from homedir after the file was download by FTP ?
Hi all
I configured VSFTPD server on Centos 5.
all local users are chroot to their home dir.
i as the administrator upload files to their home dir's.
i need the file to be deleted from their home dir after the first successful download.
so nobody will be able to download the same file twice.
i searched the web for solution but i didnt find any.
i know that its not a built in feature of VSFTPD
and that i need some script to run in the background to do this.
my guess is that this script should read the /var/log/xferlog file.
and auto delete files from there.
can any one tell me how to write script like that
or if you have another solution please let me know.
thank you.
|