email me ftp user logons
Hi All,
I have wu-ftp setup on my Redhat 7.2 machine and have a few users which frequently log on. I want to recieve an email when ever a user logs on. How can this be accomplished? thanks in advance. Jon |
Hmm, I can't find anything in the ftpaccess manpage that could help you...
try subscribing to the wuftp-questions mailing list and asking them. To subscribe send an e-mail message to: majordomo@wu-ftpd.org The text of the message should only contain the following: subscribe wuftpd-questions end To post a message to the list, send your message to wuftpd-questions@wu-ftpd.org |
Write a simple cron script that parses the end of /var/log/secure awk/sed's out the username/time and mails it to you...
Could easily be written as a oneliner.. Or if the secure log is too big to parse every few minutes. Change syslog to also log to a fifo and the read from it instead.. |
Well I guess sometimes the brain doesn't work as it's supposed to. It'll only work woth a fifo of course. Or you'd get multiple mails for the same login...
|
All times are GMT -5. The time now is 04:27 AM. |