<?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>Dhaval Parikh &#187; vsftpd slicehost</title>
	<atom:link href="http://blog.dhavalparikh.co.in/tag/vsftpd-slicehost/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dhavalparikh.co.in</link>
	<description>Ruby on Rails, Stock Markets, Technology news and info - Its all about my passion</description>
	<lastBuildDate>Wed, 25 Jan 2012 07:06:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Setting up FTP or SFTP server using vsftpd on ubuntu</title>
		<link>http://blog.dhavalparikh.co.in/2009/11/setting-up-ftp-or-sftp-server-using-vsftpd-on-ubuntu/</link>
		<comments>http://blog.dhavalparikh.co.in/2009/11/setting-up-ftp-or-sftp-server-using-vsftpd-on-ubuntu/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 05:46:46 +0000</pubDate>
		<dc:creator>Dhaval Parikh</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[sftp server]]></category>
		<category><![CDATA[sftp slicehost]]></category>
		<category><![CDATA[vsftpd]]></category>
		<category><![CDATA[vsftpd slicehost]]></category>
		<category><![CDATA[vsftpd ubuntu]]></category>

		<guid isPermaLink="false">http://blog.dhavalparikh.co.in/?p=277</guid>
		<description><![CDATA[Recently I was given a task to configure FTP server so that the user can upload files through FTP. I found VSFTPD really a good solution for it. Its very simple to configure Here are the steps 1) Install vsftpd using the following command sudo apt-get install vsftpd 2) On doing so it will get [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was given a task to configure FTP server so that the user can upload files through FTP. I found VSFTPD really a good solution for it. Its very simple to configure Here are the steps</p>
<p>1) Install vsftpd using the following command</p>
<p><span><span style="margin-left: 0px ! important;"><code>sudo apt-get install vsftpd</code></span></span><br />
2) On doing so it will get installed in /etc path by default. To confirm the same go to /etc/<span><span style="margin-left: 0px ! important;"><code>vsftpd.conf using</code></span></span></p>
<p>sudo nano /etc/vsftpd.conf</p>
<p>Now if you want to allow local users to login find local_enable=YES  and uncomment it</p>
<p>To disable anonymous ftp change anonymous_enable=YES to anonymous_enable=NO</p>
<p>Uncommenting the line (write_enable=YES) will let ftp users upload content to the server. (Thats what I wanted to do)</p>
<p>Thats all its done. Restart the server using</p>
<p>sudo /etc/init.d/vsftpd restart</p>
<p>This is how you will be able to allow ftp login.</p>
<p>But if u have many sites hosted on a server and you want to allow to access only one particular site to a certain user you need to do the following</p>
<p>1) create groups for specific sites using</p>
<p>groupadd site1<br />
chgrp -R site1 /var/www/site1</p>
<p>2) Add user to that group</p>
<p>useradd -G site1 username</p>
<p>3) Give permission to a particular group</p>
<p>chmod -R  g+w /var/www/site1/*</p>
<p>I think thats all. You should be able to access your server using ftp and even upload content on it.</p>
<p>Oh yes one more thing was I wanted the user to go directly to the folder where i wanted him to upload the file. So for that you need to change the root path/home path. For this u need to open passwd file in /etc using</p>
<p>nano /etc/passwd</p>
<p>Looks for the ftp access and the username You will find the current path. In most cases it will be /home change that to your preferred one.</p>
<p>Hmm Thats it..</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dhavalparikh.co.in/2009/11/setting-up-ftp-or-sftp-server-using-vsftpd-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

