<?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>Libre Things &#187; ProFTPD</title>
	<atom:link href="http://positon.org/tag/proftpd/feed" rel="self" type="application/rss+xml" />
	<link>http://positon.org</link>
	<description></description>
	<lastBuildDate>Tue, 23 Feb 2016 20:01:11 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.7.1</generator>
	<item>
		<title>ProFTPD and AuthUserFile for password file</title>
		<link>http://positon.org/proftpd-and-authuserfile-for-password-file</link>
		<comments>http://positon.org/proftpd-and-authuserfile-for-password-file#comments</comments>
		<pubDate>Sun, 10 Oct 2010 23:45:00 +0000</pubDate>
		<dc:creator><![CDATA[dooblem]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[ProFTPD]]></category>

		<guid isPermaLink="false">http://positon.org:81/?p=101</guid>
		<description><![CDATA[Default in Debian: ProFTPD only uses the /etc/passwd system user base. To add &#8220;virtual&#8221; users : In /etc/proftpd/proftpd.conf: DefaultRoot ~ AuthUserFile /etc/proftpd/ftpd.passwd RequireValidShell off Then restart proftpd: /etc/init.d/proftpd restart Create users file: vi /etc/proftpd/ftpd.passwd username:HASH:1011:1011:MyUserName:/home/ftp/directory:/bin/true You can also generate the user lines with the ftpasswd command, but I think it&#8217;s simpler to generate passwords with [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Default in Debian: <a href="http://www.proftpd.org">ProFTPD</a> only uses the <code>/etc/passwd</code> system user base.</p>
<p>To add &#8220;virtual&#8221; users :</p>
<p>In <code>/etc/proftpd/proftpd.conf</code>:</p>
<pre>
DefaultRoot ~
AuthUserFile /etc/proftpd/ftpd.passwd
RequireValidShell off
</pre>
<p>Then restart proftpd:  <code>/etc/init.d/proftpd restart</code></p>
<p>Create users file:</p>
<pre>
vi /etc/proftpd/ftpd.passwd
username:HASH:1011:1011:MyUserName:/home/ftp/directory:/bin/true
</pre>
<p>You can also generate the user lines with the <code>ftpasswd</code> command, but I think it&#8217;s simpler to generate passwords with the command:</p>
<pre>
mkpasswd --hash=md5
</pre>
<p>Then paste the HASH in the passwd file.</p>
<p>Correct passwd file permissions:</p>
<pre>
chown proftpd /etc/proftpd/ftpd.passwd
chmod go-r /etc/proftpd/ftpd.passwd
</pre>
<p>And just test it to finish.</p>
<p><ins>Links</ins>:</p>
<ul>
<li><a href="http://www.proftpd.org/docs/howto/AuthFiles.html" title="http://www.proftpd.org/docs/howto/AuthFiles.html">http://www.proftpd.org/docs/howto/AuthFiles.html</a></li>
<li><a href="http://www.proftpd.org/docs/directives/linked/config_ref_AuthUserFile.html" title="http://www.proftpd.org/docs/directives/linked/config_ref_AuthUserFile.html">http://www.proftpd.org/docs/directives/linked/config_ref_AuthUserFile.html</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://positon.org/proftpd-and-authuserfile-for-password-file/feed</wfw:commentRss>
		<slash:comments></slash:comments>
		</item>
	</channel>
</rss>
