<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: vsftpd and email notication in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158811#M72939</link>
    <description>Still not perfect but closer to your goal-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can edit /etc/hosts.allow file and to add a line like this....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;vsftpd : IP (of the client that usually uploads the file) :spawn echo "There's some action from %c" |mail -s "FTP action" your_email_address&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope it helps.</description>
    <pubDate>Thu, 08 Jan 2004 08:53:54 GMT</pubDate>
    <dc:creator>Alexander Chuzhoy</dc:creator>
    <dc:date>2004-01-08T08:53:54Z</dc:date>
    <item>
      <title>vsftpd and email notication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158804#M72932</link>
      <description>All I am wondering if some one have done this before, I have set up an ftp server and I want to be able to get notify via email if someone upload a new file to the ftp server.  Suggestions anone? Thanks.</description>
      <pubDate>Wed, 07 Jan 2004 15:42:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158804#M72932</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2004-01-07T15:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: vsftpd and email notication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158805#M72933</link>
      <description>looks like a task for cron.&lt;BR /&gt;&lt;BR /&gt;and to send mail....&lt;BR /&gt;&lt;BR /&gt;echo "Found new file" | mail -s "the subject" your@email.address&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jan 2004 16:08:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158805#M72933</guid>
      <dc:creator>Olivier Drouin</dc:creator>
      <dc:date>2004-01-07T16:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: vsftpd and email notication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158806#M72934</link>
      <description>Ok, maybe I have not phrased the question properly. I need to know how to detect when a new file is uploaded. I need idea on how to script it out. &lt;BR /&gt;&lt;BR /&gt;What I am thinking is taking a listing of the dir and saved it to a file, then check it again sometime later and take a the listing of the dir and save it. Then do a checksum on the two files, if they differ (assuming they differ because new files was uploaded) than send an email out. What do you think?</description>
      <pubDate>Wed, 07 Jan 2004 16:32:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158806#M72934</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2004-01-07T16:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: vsftpd and email notication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158807#M72935</link>
      <description>I haven't done this, so my thoughts are untested and high-level but I'm thinking that if you are using wu-ftpd, you could set the log transfers directive to log incoming files, and script the diffs. Instead of running it from cron, you could write a simple wrapper for ftpd, something like:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;/usr/sbin/in.ftpd&lt;BR /&gt;/usr/bin/checkftplogdiffs&lt;BR /&gt;&lt;BR /&gt;When inetd or xinetd kills ftpd, it would trigger a check on the logs which would in turn email you if there has been a new file uploaded...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Jan 2004 18:16:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158807#M72935</guid>
      <dc:creator>Paul Cross_1</dc:creator>
      <dc:date>2004-01-07T18:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: vsftpd and email notication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158808#M72936</link>
      <description>I turn on enhanced logging in xinetd.conf and then have a job that periodically scans the /var/log/messages files for all connections. They are so few usually, accept the time someone tried to use 5000 ftp logon attempts in a vain attempt to guess a password for common user names.&lt;BR /&gt;&lt;BR /&gt;If you break out the ftp logging to its own file, you can use a grep | mail "subject" emailaddy script to let you know whats going on.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 07 Jan 2004 19:42:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158808#M72936</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-01-07T19:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: vsftpd and email notication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158809#M72937</link>
      <description>Maybe using tripwire will assist you.This way you'll know when something's changed on monitored directories...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jan 2004 01:41:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158809#M72937</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-01-08T01:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: vsftpd and email notication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158810#M72938</link>
      <description>All,&lt;BR /&gt;these are nice solution, but I am not doing this for security reasons.  This ftp server, have serveral ftp accounts and someone within our company is responsible for downloading file when there are new files on the ftp server. The files are uploaded by third party member, but they do not notify when new files are uploaded. So I need something that will notify someone in our company that there are new files being uploaded, so we can go get them.</description>
      <pubDate>Thu, 08 Jan 2004 08:39:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158810#M72938</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2004-01-08T08:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: vsftpd and email notication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158811#M72939</link>
      <description>Still not perfect but closer to your goal-&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can edit /etc/hosts.allow file and to add a line like this....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;vsftpd : IP (of the client that usually uploads the file) :spawn echo "There's some action from %c" |mail -s "FTP action" your_email_address&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope it helps.</description>
      <pubDate>Thu, 08 Jan 2004 08:53:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158811#M72939</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-01-08T08:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: vsftpd and email notication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158812#M72940</link>
      <description>hosts.allow looks promising, but I am getting this error and trying to get past it:&lt;BR /&gt;vsftpd: warning: can't get client address: Bad file descriptor&lt;BR /&gt;any idea? Thanks.</description>
      <pubDate>Thu, 08 Jan 2004 09:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158812#M72940</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2004-01-08T09:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: vsftpd and email notication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158813#M72941</link>
      <description>Can this host send e-mails ?&lt;BR /&gt;try only to send e-mail with this command?&lt;BR /&gt;&lt;BR /&gt;echo "hi" |mail -s "Test" e-mail_address.&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Jan 2004 10:58:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158813#M72941</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-01-08T10:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: vsftpd and email notication</title>
      <link>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158814#M72942</link>
      <description>I'm getting closer, but all I get is the ip the ftp session is comming in as, I need to know which user is loggin into the ftp server so I can email apropiate people within my company. When I added "%u", user is showing up is unknown, any idea on how to get this information?  Thanks.</description>
      <pubDate>Thu, 08 Jan 2004 11:28:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/vsftpd-and-email-notication/m-p/3158814#M72942</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2004-01-08T11:28:54Z</dc:date>
    </item>
  </channel>
</rss>

