<?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>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; vsftpd</title> <atom:link href="http://www.ghacks.net/tag/vsftpd/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 09:52:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>Add ftp service to your Ubuntu Server</title><link>http://www.ghacks.net/2009/09/06/add-ftp-service-to-your-ubuntu-server/</link> <comments>http://www.ghacks.net/2009/09/06/add-ftp-service-to-your-ubuntu-server/#comments</comments> <pubDate>Sat, 05 Sep 2009 22:51:55 +0000</pubDate> <dc:creator>Jack Wallen</dc:creator> <category><![CDATA[Advice]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Open Source]]></category> <category><![CDATA[Server]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Tutorials Basic]]></category> <category><![CDATA[anonymous ftp]]></category> <category><![CDATA[ftp server]]></category> <category><![CDATA[ubuntu server]]></category> <category><![CDATA[vsftpd]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=16052</guid> <description><![CDATA[So you now have your Ubuntu Server up and running with the help of &#8220;Installing Ubuntu Server 9.04&#8221; and you now have Samba working with the help of &#8220;Set up your new Ubuntu Server as a Samba Server&#8220;. Now it&#8217;s time to add ftp to the mix. Of course many people are of the mind [...]]]></description> <content:encoded><![CDATA[<p>So you now have your Ubuntu Server up and running with the help of &#8220;<a
title="Installing Ubuntu Server 9.04" href="http://www.ghacks.net/2009/09/03/installing-ubuntu-server-9-04/" target="_blank">Installing Ubuntu Server 9.04</a>&#8221; and you now have Samba working with the help of &#8220;<a
title="Samba" href="http://www.ghacks.net/2009/09/04/set-up-your-new-ubuntu-server-as-a-samba-server/" target="_blank">Set up your new Ubuntu Server as a Samba Server</a>&#8220;. Now it&#8217;s time to add ftp to the mix. Of course many people are of the mind set that FTP servers are slowly becoming a thing of the past. I would disagree because of the low cost of hardware, ease of set up, and ease of use. You can&#8217;t beat an FTP server up on your network as a central file repository.</p><p>Now that you already have your Ubuntu Server up and running, adding FTP is actually quite easy. There are numerous FTP servers available, but the one I tend to prefer is vsftpd. Not only is it more secure than many other FTP servers, it&#8217;s easy to install and configure, even for anonymous use.</p><p>In this article you will see how to get vsftpd installed and configured for both user login and anonymous use.</p><p><span
id="more-16052"></span></p><p><strong>Installing vsftpd</strong></p><p>Since the installation for the base server is a GUI-less Ubuntu 9.04, the entire installation and configuration will be done from the command line. Log into your server and then issue the following command:</p><p><em>sudo apt-get install vsftpd</em></p><p>The above command will install everything needed for your FTP server. What you will find is your configuration file located in the <strong>/etc</strong> directory and the executable located in <strong>/etc/init.d/</strong>. By default vsftpd is installed to allow ONLY anonymous download. The default location for anonymous files is in <strong>/home/ftp</strong>. So by default all you need to do is place files you want to be accessible anonymously in <strong>/home/ftp</strong>, start the vsftp daemon with the command:</p><p><em>sudo /etc/init.d/vsftpd start</em></p><p>And you can immediately connect anonymously. Any file located within <strong>/home/ftp</strong> will be available to anonymous users. That&#8217;s not a bad setup for an internal LAN. But if you need to control what people use/see, or if you do not want to allow anonymous access, you will have to take care of a little configuration.</p><p><strong>Configuring user-authenticated login</strong></p><p>Let&#8217;s say you have four users on your system that need access to their own individual accounts. For this you will need to enable user-authenticated login. This is done within the <strong>/etc/vsftpd.conf</strong> file. Open up this file and scroll down to around line 26. Here you will see the entry:</p><p><em>#local_enable=YES</em></p><p>Notice the &#8220;#&#8221; symbol at the beginning of the line? This means that line is commented out. Remove the &#8220;#&#8221; symbol, save the file, restart vsftpd, and now anyone with an account on your ftp server can log in with their username and password.</p><p>But what if the users need to upload as well as download? Simple. Below the <em>local_enable</em> line you will see the line:</p><p><em>#write_enable=YES</em></p><p>Uncomment out that line and restart vsftpd to enable write access for your users. Remember, you have to restart vsftpd any time you make a change to the configuration file. You can also disable anonymous access by commenting out the line:</p><p><em>anonymous_enable=YES</em></p><p>This can be handy for departments as well. Say you have an editorial department, a graphics department, and an accounting department. You will have to have those accounts added to the system. You can add those accounts (and their home directories) with these commands:</p><p>sudo useradd -m ACCOUNT_NAME</p><p>sudo passwd ACCOUNT_NAME</p><p>Where ACCOUNT_NAME is the name of the user account to create. The above commands will create the user, the users&#8217; home directory, and give the user a password.</p><p>Once these accounts have been created you can log into the FTP server with the username and password.</p><p><strong>Final thoughts</strong></p><p>Setting up an FTP server couldn&#8217;t be any easier. With the Ubuntu Server already up and running, you can have anonymous ftp set up in about a minute.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2009/09/06/add-ftp-service-to-your-ubuntu-server/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> </channel> </rss>
