[plug] vsFTPd

Mr Robot gateway at westnet.com.au
Tue Sep 14 23:07:30 WST 2004


Thanks garry kind of lost me there
well i got my cron back
/bin/sh: line 1: /bin/script.sh: Permission denied

TT
----- Original Message ----- 
From: "Garry" <garbuck at westnet.com.au>
To: <plug at plug.linux.org.au>
Sent: Tuesday, September 14, 2004 10:55 PM
Subject: Re: [plug] vsFTPd


> 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."
>
>
>
>
>
> _______________________________________________
> PLUG discussion list: plug at plug.linux.org.au
> http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.760 / Virus Database: 509 - Release Date: 10/09/2004 




More information about the plug mailing list