Run remote command when FTP user connects

c0nfus3d1

Verified User
Joined
Oct 29, 2010
Messages
15
I'm trying to see if I can run a command on the server when either/or:

- A [specific] user connects to the FTP server
- A [specific] user uploads a file to the FTP server

Ex: when user "johndoe" connects to his FTP account, I want to run a command/program on the server automatically- like a command to send him an email letting him know of the account activity

- AND/OR -

Ex: when user "johndoe" connects to his FTP account and uploads a file, I want to run a command/program on the server automatically

Is this possible?
 
Probably not. You would have to read the documentation for whatever ftp daemon you use.
 
I know I could create a cron job to check for new files in the user's home folder.. but the notification would be delayed between jobs, and i wouldn't want to create a cron for something that I could possibly do another way..

as for the login part, I don't have any possible solutions at this time
 
Back
Top