<?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: Installing vsftpd with MySql backend</title>
	<atom:link href="http://www.debiantutorials.com/installing-vsftpd-with-mysql-backend/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debiantutorials.com/installing-vsftpd-with-mysql-backend/</link>
	<description>Copy/Paste tutorials for Debian based Linux distros</description>
	<lastBuildDate>Wed, 01 Feb 2012 12:46:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: tomehb</title>
		<link>http://www.debiantutorials.com/installing-vsftpd-with-mysql-backend/comment-page-1/#comment-1297</link>
		<dc:creator>tomehb</dc:creator>
		<pubDate>Mon, 15 Feb 2010 22:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.debiantutorials.net/?p=100#comment-1297</guid>
		<description>Little Script to create user automatic....


#!/usr/bin/perl
# Script to Add New Virtual FTP Users &amp; Create a FTP Dir
# # Version 0.1 - Thomas Stewart Buchanan - 15/02/2010
use strict;
use warnings;
use DBI;

# MYSQL VARIABLES
my $database = &quot;DBI:mysql:vsftpd&quot;;
my $tablename = &quot;accounts&quot;;
my $user = &quot;vsftpd&quot;;
my $pw = &quot;ftpuserpass&quot;;

# GATHER USER DETAILS
print &quot;Enter the name of the new FTP user:\n&quot;;
chomp(my $inUser = );
print &quot;Please now enter a password for user $inUser:\n&quot;;
chomp(my $inPw = );
print &quot;Thankyou \n&quot;;


# PERL MYSQL CONNECT
my $dbh = DBI-&gt;connect($database, $user, $pw) &#124;&#124; die &quot;Could not connect to database: $DBI::errstr&quot;;

# MYSQL QUERY TO INSERT User
my $queryInsertUser = $dbh-&gt;do(&quot;INSERT INTO $tablename (username, pass) VALUES(&#039;$inUser&#039;, PASSWORD(&#039;$inPw&#039;))&quot;);

# DISCONNECTS FROM DATABASE
$dbh-&gt;disconnect &#124;&#124; warn &quot;Disconnection failed: $DBI::errstr&quot;;

# CREATES USER DIR
mkdir (&quot;/home/vsftpd/$inUser&quot;) &#124;&#124; print $!;

# Sets ownership of the ftp dirs
my $chown = system(&quot;chown -R vsftpd:nogroup /home/vsftpd&quot;);


exit;</description>
		<content:encoded><![CDATA[<p>Little Script to create user automatic&#8230;.</p>
<p>#!/usr/bin/perl<br />
# Script to Add New Virtual FTP Users &amp; Create a FTP Dir<br />
# # Version 0.1 &#8211; Thomas Stewart Buchanan &#8211; 15/02/2010<br />
use strict;<br />
use warnings;<br />
use DBI;</p>
<p># MYSQL VARIABLES<br />
my $database = &#8220;DBI:mysql:vsftpd&#8221;;<br />
my $tablename = &#8220;accounts&#8221;;<br />
my $user = &#8220;vsftpd&#8221;;<br />
my $pw = &#8220;ftpuserpass&#8221;;</p>
<p># GATHER USER DETAILS<br />
print &#8220;Enter the name of the new FTP user:\n&#8221;;<br />
chomp(my $inUser = );<br />
print &#8220;Please now enter a password for user $inUser:\n&#8221;;<br />
chomp(my $inPw = );<br />
print &#8220;Thankyou \n&#8221;;</p>
<p># PERL MYSQL CONNECT<br />
my $dbh = DBI-&gt;connect($database, $user, $pw) || die &#8220;Could not connect to database: $DBI::errstr&#8221;;</p>
<p># MYSQL QUERY TO INSERT User<br />
my $queryInsertUser = $dbh-&gt;do(&#8220;INSERT INTO $tablename (username, pass) VALUES(&#8216;$inUser&#8217;, PASSWORD(&#8216;$inPw&#8217;))&#8221;);</p>
<p># DISCONNECTS FROM DATABASE<br />
$dbh-&gt;disconnect || warn &#8220;Disconnection failed: $DBI::errstr&#8221;;</p>
<p># CREATES USER DIR<br />
mkdir (&#8220;/home/vsftpd/$inUser&#8221;) || print $!;</p>
<p># Sets ownership of the ftp dirs<br />
my $chown = system(&#8220;chown -R vsftpd:nogroup /home/vsftpd&#8221;);</p>
<p>exit;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aip</title>
		<link>http://www.debiantutorials.com/installing-vsftpd-with-mysql-backend/comment-page-1/#comment-1281</link>
		<dc:creator>aip</dc:creator>
		<pubDate>Sat, 31 Oct 2009 21:26:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.debiantutorials.net/?p=100#comment-1281</guid>
		<description>Hey Matt

Do you see any messages from pam in /var/log/auth.log?

- aip</description>
		<content:encoded><![CDATA[<p>Hey Matt</p>
<p>Do you see any messages from pam in /var/log/auth.log?</p>
<p>- aip</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.debiantutorials.com/installing-vsftpd-with-mysql-backend/comment-page-1/#comment-1280</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Sat, 31 Oct 2009 14:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.debiantutorials.net/?p=100#comment-1280</guid>
		<description>I get a:

Disconnected from server
Connection failed.
OOPS: priv_sock_get_result

When trying to connect, if I try to change credentials it denies me access (so its connecting to the database at some point to check username/password).</description>
		<content:encoded><![CDATA[<p>I get a:</p>
<p>Disconnected from server<br />
Connection failed.<br />
OOPS: priv_sock_get_result</p>
<p>When trying to connect, if I try to change credentials it denies me access (so its connecting to the database at some point to check username/password).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
