How to automatically copy a file uploaded by a user by FTP in Linux (CentOS)?

Posted by Buttle Butkus on Server Fault See other posts from Server Fault or by Buttle Butkus
Published on 2012-11-14T22:39:18Z Indexed on 2012/11/14 23:02 UTC
Read the original article Hit count: 157

Filed under:
|
|
|
|

Outside contractor says they need read/write/execute permissions on part of the filesystem so they can run a script.

I'm ok with that, but I want to know what they're running, in case it turns out there is some nefarious code. I assume they are going to upload the file, run it, and then delete it to prevent me from finding out what they've done.

How can I find out exactly what they've done? My question specifically asks for a way of automatically copying the file, which would be one way. But if you have another solution, that's fine.

For example, if the file could be automatically copied to /home/root/uploaded_files/ that would be awesome.

© Server Fault or respective owner

Related posts about linux

Related posts about security