<?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>Ubuntu Tutorials &#187; ftp</title>
	<atom:link href="http://www.ubuntututorials.net/tag/ftp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ubuntututorials.net</link>
	<description>Copy/Paste tutorials for Ubuntu</description>
	<lastBuildDate>Sun, 15 Aug 2010 17:57:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing vsftpd using text file for virtual users</title>
		<link>http://www.ubuntututorials.net/installing-vsftpd-using-text-file-for-virtual-users/</link>
		<comments>http://www.ubuntututorials.net/installing-vsftpd-using-text-file-for-virtual-users/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 17:56:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Jaunty Jackalope]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[vsftpd]]></category>

		<guid isPermaLink="false">http://www.ubuntututorials.net/?p=8</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
sudo apt-get install vsftpd libpam-pwdfile

2. Configure vsftpd (sudo pico /etc/vsftpd.conf)
Edit these variables in the config file and leave everything else with the [...]]]></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>sudo apt-get install vsftpd libpam-pwdfile<br />
</code><span id="more-8"></span></p>
<p>2. Configure vsftpd (sudo 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 />
chroot_local_user=YES<br />
virtual_use_local_privs=YES<br />
guest_enable=YES<br />
user_sub_token=$USER<br />
local_root=/var/www/$USER<br />
hide_ids=YES<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 (sudo 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>sudo htpasswd -c /etc/ftpd.passwd user1<br />
</code></p>
<p>You can later add additional users to the file like this:</p>
<p><code>sudo htpasswd /etc/ftpd.passwd user2<br />
</code></p>
<p>5. Restart vsftpd</p>
<p><code>sudo /etc/init.d/vsftpd restart<br />
</code></p>
<p>6. Create user's home directory since vsftpd doesn't do it automatically</p>
<p><code>sudo mkdir /var/www/user1<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ubuntututorials.net/installing-vsftpd-using-text-file-for-virtual-users/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
