LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   email me ftp user logons (https://www.linuxquestions.org/questions/linux-general-1/email-me-ftp-user-logons-21660/)

jonfa 05-23-2002 04:49 PM

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

fatgod 05-24-2002 04:42 AM

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

Leffe 05-24-2002 05:06 AM

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..

Leffe 05-24-2002 05:17 AM

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.