<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Script to email successful Ftp logins</title>
	<atom:link href="http://linuxhostingsupport.net/blog/script-to-email-successful-ftp-logins/feed" rel="self" type="application/rss+xml" />
	<link>http://linuxhostingsupport.net/blog/script-to-email-successful-ftp-logins</link>
	<description>Everything About _Linux WebHosting_</description>
	<lastBuildDate>Mon, 05 Mar 2012 17:40:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: admin</title>
		<link>http://linuxhostingsupport.net/blog/script-to-email-successful-ftp-logins/comment-page-1#comment-591</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 18 Nov 2010 13:07:35 +0000</pubDate>
		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=370#comment-591</guid>
		<description>Hello Indar,

Just replace the &quot;bin/grep&quot; line in the script with the following and you should be good to go

&lt;strong&gt;/bin/grep &quot;$CUR_DATE&quot; /var/log/messages &#124; grep vsftpd &#124; grep &quot;OK LOGIN&quot; &#124; sed &#039;/127\.0\.0\.1/d&#039; &gt;&gt; /tmp/out.txt&lt;/strong&gt;

if you need a customize output, let me know and I will give a try.</description>
		<content:encoded><![CDATA[<p>Hello Indar,</p>
<p>Just replace the &#8220;bin/grep&#8221; line in the script with the following and you should be good to go</p>
<p><strong>/bin/grep &#8220;$CUR_DATE&#8221; /var/log/messages | grep vsftpd | grep &#8220;OK LOGIN&#8221; | sed &#8216;/127\.0\.0\.1/d&#8217; >> /tmp/out.txt</strong></p>
<p>if you need a customize output, let me know and I will give a try.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://linuxhostingsupport.net/blog/script-to-email-successful-ftp-logins/comment-page-1#comment-590</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 18 Nov 2010 12:24:26 +0000</pubDate>
		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=370#comment-590</guid>
		<description>No problems. Will check them out and will provide you an update.</description>
		<content:encoded><![CDATA[<p>No problems. Will check them out and will provide you an update.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: indar</title>
		<link>http://linuxhostingsupport.net/blog/script-to-email-successful-ftp-logins/comment-page-1#comment-588</link>
		<dc:creator>indar</dc:creator>
		<pubDate>Wed, 17 Nov 2010 19:10:14 +0000</pubDate>
		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=370#comment-588</guid>
		<description>Sorry the /var/log/messages are filtered with the regular expression of \&quot;OK LOGIN:\&quot; by mistake in the previous post had entered as LOGIN OK:</description>
		<content:encoded><![CDATA[<p>Sorry the /var/log/messages are filtered with the regular expression of \&#8221;OK LOGIN:\&#8221; by mistake in the previous post had entered as LOGIN OK:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: indar</title>
		<link>http://linuxhostingsupport.net/blog/script-to-email-successful-ftp-logins/comment-page-1#comment-587</link>
		<dc:creator>indar</dc:creator>
		<pubDate>Wed, 17 Nov 2010 19:04:14 +0000</pubDate>
		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=370#comment-587</guid>
		<description>Thank you very much for the reply 

As the log entries are logged only to /var/log/messages, few of them i have filtered and with the LOGIN OK: the same has been emailed to you for your reference.</description>
		<content:encoded><![CDATA[<p>Thank you very much for the reply </p>
<p>As the log entries are logged only to /var/log/messages, few of them i have filtered and with the LOGIN OK: the same has been emailed to you for your reference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://linuxhostingsupport.net/blog/script-to-email-successful-ftp-logins/comment-page-1#comment-586</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 17 Nov 2010 15:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=370#comment-586</guid>
		<description>Hello Indar,

Could you paste OR email me a few lines of your VSFTP logs i.e. the logs when a user logs in successfully and even if the user fails to login? I will update the script and will email you. Ofcourse, I will update here in the comments as well for others to see :)</description>
		<content:encoded><![CDATA[<p>Hello Indar,</p>
<p>Could you paste OR email me a few lines of your VSFTP logs i.e. the logs when a user logs in successfully and even if the user fails to login? I will update the script and will email you. Ofcourse, I will update here in the comments as well for others to see <img src='http://linuxhostingsupport.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: indar</title>
		<link>http://linuxhostingsupport.net/blog/script-to-email-successful-ftp-logins/comment-page-1#comment-583</link>
		<dc:creator>indar</dc:creator>
		<pubDate>Wed, 17 Nov 2010 15:32:32 +0000</pubDate>
		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=370#comment-583</guid>
		<description>Iam very happy that i got this script but in my case iam having rhel5 and vsftp can you please provide the search string for the vsftp.

Thank you very much
indar</description>
		<content:encoded><![CDATA[<p>Iam very happy that i got this script but in my case iam having rhel5 and vsftp can you please provide the search string for the vsftp.</p>
<p>Thank you very much<br />
indar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed</title>
		<link>http://linuxhostingsupport.net/blog/script-to-email-successful-ftp-logins/comment-page-1#comment-484</link>
		<dc:creator>Ed</dc:creator>
		<pubDate>Thu, 27 May 2010 14:38:22 +0000</pubDate>
		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=370#comment-484</guid>
		<description>The sed directive does indeed work to filter out the localhost logins.

Thank you.</description>
		<content:encoded><![CDATA[<p>The sed directive does indeed work to filter out the localhost logins.</p>
<p>Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://linuxhostingsupport.net/blog/script-to-email-successful-ftp-logins/comment-page-1#comment-483</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 27 May 2010 12:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=370#comment-483</guid>
		<description>Hi Ed,

Thanks for the email. Here is the text you need to add in the Search line to exclude localhost Ftp logins:

sed &#039;/127\.0\.0\.1/d&#039;

The Search line will now look like the following:

&lt;strong&gt;/bin/grep &quot;$CUR_DATE&quot; /var/log/messages &#124; grep pure-ftpd &#124; grep logged &#124; sed &#039;/127\.0\.0\.1/d&#039; &gt;&gt; /tmp/out.txt
&lt;/strong&gt;
Hope this helps.</description>
		<content:encoded><![CDATA[<p>Hi Ed,</p>
<p>Thanks for the email. Here is the text you need to add in the Search line to exclude localhost Ftp logins:</p>
<p>sed &#8216;/127\.0\.0\.1/d&#8217;</p>
<p>The Search line will now look like the following:</p>
<p><strong>/bin/grep &#8220;$CUR_DATE&#8221; /var/log/messages | grep pure-ftpd | grep logged | sed &#8216;/127\.0\.0\.1/d&#8217; >> /tmp/out.txt<br />
</strong><br />
Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://linuxhostingsupport.net/blog/script-to-email-successful-ftp-logins/comment-page-1#comment-482</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 26 May 2010 14:45:21 +0000</pubDate>
		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=370#comment-482</guid>
		<description>Hi Ed,

I have sent you an email asking for some details. Please check it.

And yes, if you could forward a sample log of what you mean by &#039;localhost&#039; login, I will edit the script accordingly.</description>
		<content:encoded><![CDATA[<p>Hi Ed,</p>
<p>I have sent you an email asking for some details. Please check it.</p>
<p>And yes, if you could forward a sample log of what you mean by &#8216;localhost&#8217; login, I will edit the script accordingly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed</title>
		<link>http://linuxhostingsupport.net/blog/script-to-email-successful-ftp-logins/comment-page-1#comment-480</link>
		<dc:creator>Ed</dc:creator>
		<pubDate>Tue, 25 May 2010 03:12:45 +0000</pubDate>
		<guid isPermaLink="false">http://linuxhostingsupport.net/blog/?p=370#comment-480</guid>
		<description>One other thing that would be helpful would be to exclude the localhost logins from the email results.

Thanks</description>
		<content:encoded><![CDATA[<p>One other thing that would be helpful would be to exclude the localhost logins from the email results.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

