<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Debian Tutorials &#187; vsftpd</title>
	<atom:link href="http://www.debiantutorials.com/tag/vsftpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debiantutorials.com</link>
	<description>Copy/Paste tutorials for Debian Linux</description>
	<lastBuildDate>Wed, 08 Sep 2010 08:36:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing vsftpd with MySql backend</title>
		<link>http://www.debiantutorials.com/installing-vsftpd-with-mysql-backend/</link>
		<comments>http://www.debiantutorials.com/installing-vsftpd-with-mysql-backend/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 21:31:47 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[FTP]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=100</guid>
		<description><![CDATA[vsftpd is a secure, fast and stable FTP server. In this tutorial we'll install the server and make create a user database in MySql for virtual users.
1. Install required packages (make sure you have installed MySql)
apt-get install vsftpd libpam-mysql

2. Create database and insert the first user (mysql -u root -p)
CREATE DATABASE ftpd;
USE ftpd;
CREATE TABLE users [...]]]></description>
			<content:encoded><![CDATA[<p>vsftpd is a secure, fast and stable FTP server. In this tutorial we'll install the server and make create a user database in MySql for virtual users.</p>
<p>1. Install required packages (make sure you have installed MySql)</p>
<p><code>apt-get install vsftpd libpam-mysql<br />
</code><span id="more-100"></span></p>
<p>2. Create database and insert the first user (mysql -u root -p)</p>
<p><code>CREATE DATABASE ftpd;<br />
USE ftpd;<br />
CREATE TABLE users (username varchar (30) NOT NULL, password varchar(50) NOT NULL, PRIMARY KEY (username)) TYPE=MyISAM;<br />
INSERT INTO users (username, password) VALUES ('user1', PASSWORD('password1'));<br />
GRANT SELECT ON ftpd.users to vsftpd@localhost identified by 'yourpassword';<br />
exit;</code></p>
<p><em>Replace yourpassword with a strong password used later by vsftpd to authenticate</em></p>
<p>3. Configure vsftpd (pico /etc/vsftpd.conf)</p>
<p>Edit or add these variables in the config file and leave everything else with the default values.</p>
<p><code>anonymous_enable=NO<br />
local_enable=YES<br />
write_enable=YES<br />
local_umask=022<br />
nopriv_user=vsftpd<br />
virtual_use_local_privs=YES<br />
guest_enable=YES<br />
user_sub_token=$USER<br />
local_root=/var/www/$USER<br />
chroot_local_user=YES<br />
hide_ids=YES<br />
guest_username=vsftpd<br />
</code></p>
<p><em>Set the local_root to the parent directory where the user's home directories are located</em></p>
<p>4. Configure PAM to check the MySql database for users (pico /etc/pam.d/vsftpd)</p>
<p><code>auth required pam_mysql.so user=vsftpd passwd=yourpassword host=localhost db=ftpd table=users usercolumn=username passwdcolumn=password crypt=2<br />
account required pam_mysql.so user=vsftpd passwd=yourpassword host=localhost db=ftpd table=users usercolumn=username passwdcolumn=password crypt=2<br />
</code></p>
<p><em>Make sure you remove everything else from the file</em></p>
<p>5. Create a local user that's used by the virtual users to authenticate</p>
<p><code>useradd --home /home/vsftpd --gid nogroup -m --shell /bin/false vsftpd<br />
</code></p>
<p>6. Restart vsftpd</p>
<p><code>/etc/init.d/vsftpd restart<br />
</code></p>
<p>7. Create user's home directory since vsftpd doesn't do it automatically</p>
<p><code>mkdir /var/www/user1<br />
chown vsftpd:nogroup /var/www/user1<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-vsftpd-with-mysql-backend/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Installing vsftpd using text file for virtual users</title>
		<link>http://www.debiantutorials.com/installing-vsftpd-using-text-file-for-virtual-users/</link>
		<comments>http://www.debiantutorials.com/installing-vsftpd-using-text-file-for-virtual-users/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 21:04:47 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[FTP]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=98</guid>
		<description><![CDATA[vsftpd is a secure, fast and stable FTP server. In this tutorial we'll install the server and make it check in a flat text file for virtual users allowed to login.
1. Install required packages
apt-get install vsftpd libpam-pwdfile

2. Configure vsftpd (pico /etc/vsftpd.conf)
Edit these variables in the config file and leave everything else with the default value.
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
nopriv_user=vsftpd
virtual_use_local_privs=YES
guest_enable=YES
user_sub_token=$USER
local_root=/var/www/$USER
chroot_local_user=YES
hide_ids=YES
guest_username=vsftpd

Set [...]]]></description>
			<content:encoded><![CDATA[<p>vsftpd is a secure, fast and stable FTP server. In this tutorial we'll install the server and make it check in a flat text file for virtual users allowed to login.</p>
<p>1. Install required packages</p>
<p><code>apt-get install vsftpd libpam-pwdfile<br />
</code><span id="more-98"></span></p>
<p>2. Configure vsftpd (pico /etc/vsftpd.conf)</p>
<p>Edit these variables in the config file and leave everything else with the default value.</p>
<p><code>anonymous_enable=NO<br />
local_enable=YES<br />
write_enable=YES<br />
local_umask=022<br />
nopriv_user=vsftpd<br />
virtual_use_local_privs=YES<br />
guest_enable=YES<br />
user_sub_token=$USER<br />
local_root=/var/www/$USER<br />
chroot_local_user=YES<br />
hide_ids=YES<br />
guest_username=vsftpd<br />
</code></p>
<p><em>Set the local_root to the parent directory where the user's home directories are located</em></p>
<p>3. Configure PAM to check the passwd file for users (pico /etc/pam.d/vsftpd)</p>
<p><code>auth    required pam_pwdfile.so pwdfile /etc/ftpd.passwd<br />
account required pam_permit.so<br />
</code></p>
<p><em>Make sure you remove everything else from the file</em></p>
<p>4. Create the passwd file containing the users</p>
<p><code>htpasswd -c /etc/ftpd.passwd user1<br />
</code></p>
<p>You can later add additional users to the file like this:</p>
<p><code>htpasswd /etc/ftpd.passwd user2<br />
</code></p>
<p>5. Create a local user that’s used by the virtual users to authenticate</p>
<p><code>useradd --home /home/vsftpd --gid nogroup -m --shell /bin/false vsftpd<br />
</code></p>
<p>6. Restart vsftpd</p>
<p><code>/etc/init.d/vsftpd restart<br />
</code></p>
<p>7. Create user's home directory since vsftpd doesn't do it automatically</p>
<p><code>mkdir /var/www/user1<br />
chown vsftpd:nogroup /var/www/user1<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-vsftpd-using-text-file-for-virtual-users/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
