Running a script when upload is finished?


I’ve got VSFTP setup on a Ubuntu box (10.04)

All is working well, except one minor thing… we use this ftp for people to send my files, but then I’ve setup the FTP folder as a local Samba share, so that I can retrieve files directly
off of the FTP location. However the problem right now is that if I try and copy/move files from that folder when I’m connected as an administrator, I still cannot do anything with the file
until I do a

CHOWN admin:admin ./*

Is there a way I can have a simple shell script run and take ownership once the user has completed uploading the file?