[plug] vsFTPd
Garry
garbuck at westnet.com.au
Tue Sep 14 22:55:39 WST 2004
Mr Robot wrote:
> Hi all
>
> Is it possable to send a email to an address when a user logs in via FTP ?
> Or it is possible to create a cronjob to send mail when ever a user logs
> into their FTP account
>
> Can any one help me out please
There is a Linux command "who", which lists logged in users. Not sure if
it indicates ftp users or not (prob not).
So, if you scripted something with pseudocode along the lines of:
if (who|grep username)
mail message
die
else
die
Make this a cron job, every x minutes (to suit priority of mission).
So the answer is yes, you can email to an address when a user is logged
in to a given account, if it corresponds with the cron job..
Hope this helps.
Garry.
ps There is, no doubt, 41 better ways. But you asked is it possible, the
answer is yes.
--
"Microsoft is not the Borg collective. The Borg collective has got
proper networking."
More information about the plug
mailing list