<?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>FettesPS &#187; server</title>
	<atom:link href="http://www.fettesps.com/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fettesps.com</link>
	<description>Fettes Programming Solutions</description>
	<lastBuildDate>Sun, 22 Jan 2012 18:21:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Installing Pure-FTPd on Ubuntu 9.04 Server</title>
		<link>http://www.fettesps.com/installing-pure-ftpd-on-ubuntu-904-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=installing-pure-ftpd-on-ubuntu-904-server</link>
		<comments>http://www.fettesps.com/installing-pure-ftpd-on-ubuntu-904-server/#comments</comments>
		<pubDate>Sun, 31 May 2009 21:46:12 +0000</pubDate>
		<dc:creator>FettesPS</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[proftpd]]></category>
		<category><![CDATA[pureftpd]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.fettesps.com/?p=140</guid>
		<description><![CDATA[Although I no longer install FTP servers on any of my Linux servers, as I favour the user of SFTP, I wanted to update my instructions for the newest version of Ubuntu Server. I’m sure these instructions are very similar for most distributions, but I thought I’d specifically target Ubuntu 9.04 Server since that is what [...]]]></description>
			<content:encoded><![CDATA[<div><span>Although I no longer install FTP servers on any of my Linux servers, as I favour the user of SFTP, I wanted to update my instructions for the newest version of Ubuntu Server. I’m sure these instructions are very similar for most distributions, but I thought I’d specifically target Ubuntu 9.04 Server since that is what I am most familiar with.<br />
<code>sudo apt-get install pure-ftpd</code></p>
<p style="font-size: 1.05em;">When prompted, enter Y and hit enter.</p>
<p style="font-size: 1.05em;">Now, set up a new account using the &#8216;useradd&#8217; command. You&#8217;ll also need to specify the home directory for the user by adding &#8216;-d /home/directoryname -m&#8217; so when the user logs in they have a folder to upload/download files from.  You don&#8217;t have to use the <span style="font-style: italic;">/home</span> dirctory for this but I always do to make things simple.  Here is the command I used.</p>
<p><code>sudo useradd -d /home/username -m username<br />
sudo passwd username<br />
</code></p>
<p style="font-size: 1.05em;">Since I don&#8217;t want this user being able to cruise through the file system and see everything I&#8217;m going to lock the user to the home directory we just made. Open up<span> </span><em>/etc/passwd</em><span> </span>for editing. I use pico for this, you can use whatever program you like. Search for the user you just made (ctrl+w in pico) and add<span> </span><em>/./</em><span> </span>to their home directory like this:</p>
<p><code>sudo pico /etc/passwd<br />
/home/username/./</code></p>
<p style="font-size: 1.05em;">Note that the line will be a lot messier than that, so just squeeze it in where appropriate. Also, make sure to put in a shell at the end of that line…<span> </span><em>/bin/bash</em><span> </span>works fine. After all of that, add their username to<span> </span><em>/etc/ftpallow</em> if you want to manually allow access to certain accounts.</p>
<p>Now just type<span> </span><em>pure-ftpd-control restart</em><span> </span>on the command line and you&#8217;re ready to test out your account!  Hop on another computer, or just SSH into another one and try from there.  If it doesn&#8217;t work its possible your install didn&#8217;t set up some of the proper configuration.  This happens automatically on Ubuntu 9.04 Server but on other distrobutions you may need to perform this next step.</p>
<p style="font-size: 1.05em;">Edit<span> </span><em>/etc/pam.d/pure-ftpd</em><span> </span>using your favourite editor to look like this:</p>
<p><code>auth sufficient pam_ftp.soauth required pam_unix_auth.so shadow use_first_pass</code><br />
<code>auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed</code><br />
<code>auth required pam_listfile.so item=user sense=allow file=/etc/ftpallow onerr=fail</code><br />
<code>auth required pam_shells.so</code></p>
<p style="font-size: 1.05em;">Save the file, restart the server again and try it out again.  If you&#8217;re having troubles still I suggest seeking help from the <a href="http://www.pureftpd.org/project/pure-ftpd/doc" target="_new">Documentation</a>.</p>
<p></span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.fettesps.com/installing-pure-ftpd-on-ubuntu-904-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

