<?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>IDIFY Solutions LLP &#187; Open Source Technologies</title>
	<atom:link href="http://blog.idifysolutions.com/category/open-source/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.idifysolutions.com</link>
	<description>I Do It For You</description>
	<lastBuildDate>Wed, 13 Mar 2013 14:59:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>10 Reasons why &#8211; Ruby on Rails</title>
		<link>http://blog.idifysolutions.com/2013/02/10-reasons-why-ruby-on-rails/</link>
		<comments>http://blog.idifysolutions.com/2013/02/10-reasons-why-ruby-on-rails/#comments</comments>
		<pubDate>Tue, 19 Feb 2013 05:02:08 +0000</pubDate>
		<dc:creator>manish</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.idifysolutions.com/?p=160</guid>
		<description><![CDATA[Your development team has been frustrating you, projects start and four weeks later the development team is still developing the framework, your budget is running out. You want productivity but just don&#8217;t know how to get it. Is there an answer? One of your developers keeps mentioning this great framework called &#8216;Ruby on Rails&#8217;. Is [...]]]></description>
			<content:encoded><![CDATA[<article id="blog_post"><a href="http://blog.idifysolutions.com/wp-content/uploads/2013/02/rubyonrails.png"><img class="aligncenter size-full wp-image-162" title="RubyOnRails" src="http://blog.idifysolutions.com/wp-content/uploads/2013/02/rubyonrails.png" alt="10 Reasons why – Ruby on Rails" width="256" height="256" /></a></article>
<p>Your development team has been frustrating you, projects start and four weeks later the development team is still developing the framework, your budget is running out. You want productivity but just don&#8217;t know how to get it. Is there an answer? One of your developers keeps mentioning this great framework called &#8216;Ruby on Rails&#8217;. Is this the answer? This article discusses the positives and the negatives in moving to this new technology.</p>
<p>1. Ruby on Rails provides a consistent approach to building web applications with an out of the box architecture. Traditionally starting a new web application is a fairly heavy weight process, you typically need to survey and choose your various software components to solve the common architectural problems of persistence, logging, build scripts, application configuration, web tier components and workflow. With the Rails framework these decisions are already made for you, so you can get on to understanding the business problem and quickly build a working system. You become productive in minutes not weeks or months.</p>
<p>2. In a Rails application, a pragmatic philosophy of convention over configuration is taken, this is apparent in all layers of the architecture with the highest productivity gains noticeable in the relationship between the model and the database. Once the developer understands the rules and constraints, Rails magically connects your view to your controller and model, and your model to the database. You don&#8217;t need generators or specialised tools to manage this, it all just works.</p>
<p>3. Unlike other productive web scripting languages, Ruby is a fully featured object-oriented language. Ruby also adds additional power with mix-ins modules which contain independent code to inject into your classes, blocks and closures simplifying client code behaviour. Its dynamic nature gives it power beyond static languages such as .NET and java, and the benefits are apparent by how the Rails framework has been put together itself.</p>
<p>4. Unlike other web templating technologies, the templating technology built into Rails can be used to generate web pages, emails, xml documents or any text document that requires dynamic content.</p>
<p>5. Rails includes a well thought out object relationship mapping tool, ActiveRecord, which provides your answer to database persistence. Your model is seamlessly persisted to the database. Transactions, inheritance models, validation, and caching have all been thought out and are production ready. With Rails you become a lot closer to the structure of the database than traditional object-oriented development methodologies. This is a good thing as over time as the database will no doubt end up being your project&#8217;s most valuable asset.</p>
<p>6. Rails includes support for a variety of web technologies. Every web application needs email integration at some point and Rails provides an out of the box smart solution, and as with other Rails technologies it gives you the complete package down to configuration in development, test and production environments. Ruby on Rails also supports web services, the integration with Rails due to the dynamic nature of Ruby is simply, clean and seamless. If you are moving into the Web 2.0 space, Rails provides a rich abstracted interface to implementing AJAX operations.</p>
<p>7. Generally software projects do not mature if at all to the point of having a solid foundation to perform database migrations and rollbacks between environments and across development systems. However with the Rails framework you will be delighted with the implementation of database migrations for applying and rolling back database changes. You enter your update and rollback scripts in Ruby, Rails understands the current version and can move forwards or backwards to any database version.</p>
<p>8. For development productivity, the shorter the gap between the change and test cycle the better. In Rails, changes are reflexed immediately within the runtime environment so developers can quickly iterate between fix and test cycles without any expensive redeploys. Ruby code is also easily testable. Methods and objects can be replaced at runtime so software components can easily be tested without resorting to external tools or generators.</p>
<p>9. Getting started with Rails is easy as generators will propel you along. An experienced Rails developer will also become aware of numerous idioms available within the Rails framework that shared the amount of code a developer need write. Overall less code to write means lower complexity, higher productivity and less bugs.</p>
<p>10. Ruby has been around for a long time, the Rails framework which has deservedly propelled Ruby into the spotlight has hit version 2.3 and is not only production ready but now well supported in the community and a stack of resource available on the web. Ruby and the Rails framework is open source and well supported by a clever team of contributors.</p>
<p>*So what are some of the cons?*</p>
<p>1. If you take time to follow the Ruby examples and tutorials it may give you a false sense of productivity. They typically follow the formula of creating a database model, configuring a connection to the database and joining it up to the model controller and view by use of the generators. This is all very simple involving a dozen or so lines of code. In the real world however you will be working at higher level of complexity and will need to understand multiple facets of Ruby and the Rails framework to be productive in churning out business functionality. You will need to invest in getting up to speed with the language and framework. As Ruby is a dynamic language, more automated testing is required. Your developers will need to become more disciplined and rigorous in creating unit tests as part of their development process.</p>
<p>2. If the type of development you are doing is glueing together existing systems or building back end systems, be aware that Rails is optimized for building web applications, your host system or enterprise database may not have the integration module you require for Ruby UPDATE (2010) &#8211; however JRuby is now maturing and can plug the gap by leveraging legacy java libraries and provide a lower cost to more enjoyable path to legacy integration. DSL&#8217;s can be engineered to remove the laborious code java developers are use to writing.</p>
<p>After considering the pros and cons, my advice would be that if your business or application has tight timelines, you want a more powerful web application for your buck with alone with inbuilt tools which remove the pain and setup cost of an IT project to seriously suggest considering investment into the Ruby on Rails framework.</p>
<article>
<h2></h2>
</article>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.idifysolutions.com/2013/02/10-reasons-why-ruby-on-rails/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.idifysolutions.com/2013/02/10-reasons-why-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERROR: rvm requires autoreconf to install the selected ruby interpreter however autoreconf was not found in the PATH.</title>
		<link>http://blog.idifysolutions.com/2011/11/error-rvm-requires-autoreconf-to-install-the-selected-ruby-interpreter-however-autoreconf-was-not-found-in-the-path/</link>
		<comments>http://blog.idifysolutions.com/2011/11/error-rvm-requires-autoreconf-to-install-the-selected-ruby-interpreter-however-autoreconf-was-not-found-in-the-path/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 04:34:16 +0000</pubDate>
		<dc:creator>pardeep</dc:creator>
				<category><![CDATA[Installation]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.idifysolutions.com/?p=141</guid>
		<description><![CDATA[This problem generally occurs in 1.8.7-head In ubuntu this can solve your problem. &#160; apt-get install automake Share on Facebook]]></description>
			<content:encoded><![CDATA[<p>This problem generally occurs in 1.8.7-head</p>
<p>In ubuntu this can solve your problem.</p>
<p>&nbsp;</p>
<p>apt-get install automake</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.idifysolutions.com/2011/11/error-rvm-requires-autoreconf-to-install-the-selected-ruby-interpreter-however-autoreconf-was-not-found-in-the-path/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.idifysolutions.com/2011/11/error-rvm-requires-autoreconf-to-install-the-selected-ruby-interpreter-however-autoreconf-was-not-found-in-the-path/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>uninitialized constant Rake::DSL</title>
		<link>http://blog.idifysolutions.com/2011/09/uninitialized-constant-rakedsl/</link>
		<comments>http://blog.idifysolutions.com/2011/09/uninitialized-constant-rakedsl/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 11:16:35 +0000</pubDate>
		<dc:creator>pardeep</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.idifysolutions.com/?p=119</guid>
		<description><![CDATA[what will we do when we get error&#8211;uninitialized constant Rake::DSL at the time of rake db:create add    require &#8216;rake/dsl_definition&#8217;  above require &#8216;rake&#8217;  in your rakefile Share on Facebook]]></description>
			<content:encoded><![CDATA[<p>what will we do when we get error&#8211;uninitialized constant Rake::DSL</p>
<p>at the time of rake db:create</p>
<p>add    require &#8216;rake/dsl_definition&#8217;  above require &#8216;rake&#8217;  in your rakefile</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.idifysolutions.com/2011/09/uninitialized-constant-rakedsl/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.idifysolutions.com/2011/09/uninitialized-constant-rakedsl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert utf-8 to chinese in ruby on rails</title>
		<link>http://blog.idifysolutions.com/2011/09/convert-utf-8-to-chinese-in-ruby-on-rails/</link>
		<comments>http://blog.idifysolutions.com/2011/09/convert-utf-8-to-chinese-in-ruby-on-rails/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 12:21:21 +0000</pubDate>
		<dc:creator>Deepak</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.idifysolutions.com/?p=106</guid>
		<description><![CDATA[Sample code to send a utf-8 string in subject line of email. Its pretty simple and straight forward &#160; def send_to_lead(lead_email, from_email, from_name, offer_id, club_id, customer_id) @customer_name = from_name @customer_email = from_email str = &#8220;&#38;#26399;&#38;#24453;&#38;#24456;&#38;#24555;&#38;#23601;&#38;#21487;!&#8221; #    str= &#8220;subject in english&#8221; subject=str if str[0..1]==&#8221;&#38;#&#8221; subject_raw = str.gsub(&#8220;&#38;#&#8221;,&#8221;").gsub(&#8220;!&#8221;,&#8221;").split(&#8220;;&#8221;) subject=&#8221;" subject_raw.each {&#124;t&#124; subject += [t.to_i].pack(&#8220;U*&#8221;)} end mail(:to =&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Sample code to send a utf-8 string in subject line of email. Its pretty simple and straight forward</p>
<blockquote><p>&nbsp;</p>
<p>def send_to_lead(lead_email, from_email, from_name, offer_id, club_id, customer_id)<br />
@customer_name = from_name<br />
@customer_email = from_email<br />
str = &#8220;&amp;#26399;&amp;#24453;&amp;#24456;&amp;#24555;&amp;#23601;&amp;#21487;!&#8221;<br />
#    str= &#8220;subject in english&#8221;<br />
subject=str<br />
if str[0..1]==&#8221;&amp;#&#8221;<br />
subject_raw = str.gsub(&#8220;&amp;#&#8221;,&#8221;").gsub(&#8220;!&#8221;,&#8221;").split(&#8220;;&#8221;)<br />
subject=&#8221;"<br />
subject_raw.each {|t| subject += [t.to_i].pack(&#8220;U*&#8221;)}<br />
end<br />
mail(:to =&gt; lead_email,<br />
:from =&gt; &#8220;\&#8221;"+from_name+&#8221;\&#8221;" + &#8220;&lt;&#8221;+from_email+&#8221;&gt;&#8221;,<br />
:charset =&gt; &#8216;utf-8&#8242;,<br />
:subject =&gt; subject,<br />
:reply_to =&gt; &#8216;noreply@buddyreferralsystem.com&#8217;,<br />
:content_type =&gt;&#8217;multipart/alternative&#8217;,<br />
:content_transfer_encoding =&gt; &#8217;8bit&#8217;,<br />
&#8220;X-Mailer&#8221; =&gt; &#8220;Ruby (1.9.2)&#8221;<br />
).deliver<br />
end</p></blockquote>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.idifysolutions.com/2011/09/convert-utf-8-to-chinese-in-ruby-on-rails/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.idifysolutions.com/2011/09/convert-utf-8-to-chinese-in-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails ActionMailer STARTTLS bug solution</title>
		<link>http://blog.idifysolutions.com/2011/09/rails-actionmailer-starttls-bug-solution/</link>
		<comments>http://blog.idifysolutions.com/2011/09/rails-actionmailer-starttls-bug-solution/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 07:08:22 +0000</pubDate>
		<dc:creator>Deepak</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.idifysolutions.com/?p=101</guid>
		<description><![CDATA[This is a common rails mailer issue and bug new programmers, Net::SMTPAuthenticationError in InviteController#send_email_invites 530 5.7.0 Must issue a STARTTLS command first. u10sm46215072pbr.12 the solution of this problem is to include following settings in your environment.rb file config/environments/development.rb -----------------------------------     require 'tlsmail' #key but not always described     Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)        ActionMailer::Base.delivery_method [...]]]></description>
			<content:encoded><![CDATA[<p>This is a common rails mailer issue and bug new programmers,</p>
<h1>Net::SMTPAuthenticationError in InviteController#send_email_<wbr>invites</wbr></h1>
<pre>530 5.7.0 Must issue a STARTTLS command first. u10sm46215072pbr.12

the solution of this problem is to include following settings in your environment.rb file
</pre>
<pre><code>config/environments/development.rb
-----------------------------------
    require 'tlsmail' #key but not always described
    Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)   
    ActionMailer::Base.delivery_method = :smtp
    ActionMailer::Base.perform_deliveries = true
    ActionMailer::Base.raise_delivery_errors = true
   
    ActionMailer::Base.smtp_settings = {
      :enable_starttls_auto =&gt; true,  #this is the important part!
      :address        =&gt; 'smtp.gmail.com',
      :port           =&gt; 587,
      :domain         =&gt; 'xtargets.com',
      :authentication =&gt; :plain,
      :user_name      =&gt; '-------',
      :password       =&gt; '-------'
    }
   
</code></pre>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.idifysolutions.com/2011/09/rails-actionmailer-starttls-bug-solution/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.idifysolutions.com/2011/09/rails-actionmailer-starttls-bug-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Difference between &#8216;sudo&#8217; &amp; &#8216;su -c&#8217; commands</title>
		<link>http://blog.idifysolutions.com/2011/09/difference-between-sudo-su-c-commands/</link>
		<comments>http://blog.idifysolutions.com/2011/09/difference-between-sudo-su-c-commands/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 18:30:56 +0000</pubDate>
		<dc:creator>Sahil Bhatia</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[openSuse]]></category>
		<category><![CDATA[su]]></category>
		<category><![CDATA[su -c]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.idifysolutions.com/?p=93</guid>
		<description><![CDATA[Hello everyone, For those who are interested, i would like to highlight the differences between using &#8216;sudo&#8217; and &#8216;su -c&#8217; commands. Although, it will be applicable to all linux distributions, in this blog i am going to concentrate on Ubuntu &#38; Fedora. 1) Required Password: &#8216;sudo&#8217; requires current user password. Whereas, &#8216;su -c&#8217; requires root [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everyone,</p>
<p><em>For those who are interested, i would like to highlight the <strong>differences between</strong> using <strong>&#8216;sudo&#8217; and &#8216;su -c&#8217; commands.</strong></em></p>
<p>Although, it will be applicable to all linux distributions, in this blog i am going to concentrate on Ubuntu &amp; Fedora.</p>
<p><strong>1) Required Password:</strong></p>
<ul>
<li>&#8216;sudo&#8217; requires current user password.</li>
<li>Whereas, &#8216;su -c&#8217; requires root user password. (This is no coincidence. Infact, this was the very reason for introduction of sudo command).</li>
</ul>
<p>&nbsp;</p>
<p><strong>2) Operational Speed:</strong></p>
<ul>
<li>&#8216;sudo&#8217; command is slower in operation as compared to &#8216;su -c&#8217; command.</li>
<li>(In the normal course of action, you might even not notice it. But, try using it over SSH or for SE-Linux like operations, you will notice the difference.) <strong></strong></li>
</ul>
<p>&nbsp;</p>
<p><strong>3) It&#8217;s working:</strong></p>
<ul>
<li>On issuing the &#8216;sudo&#8217; command, os checks the sudoers file in /etc directory for a flag which tells is whether or not root like permission should be given to current user.</li>
<li>On the other hand, when &#8216;su -c&#8217; means, switch to super user(root) and -c switch says, only for this command.</li>
</ul>
<p>&nbsp;</p>
<p><strong>4) Time Duration</strong>:</p>
<ul>
<li>Since, &#8216;su -c&#8217; command elevates permission for only specified command, you need to enter root password, each time it is used.</li>
<li>Whereas, on entering password for sudo command, it gives root like permissions for about 5 minutes. i.e. you don&#8217;t need to enter password again if you issue sudo command again.</li>
</ul>
<p>&nbsp;</p>
<p><strong>I sincerely hope you liked it. Please leave your valuable comments and suggestions.</strong></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.idifysolutions.com/2011/09/difference-between-sudo-su-c-commands/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.idifysolutions.com/2011/09/difference-between-sudo-su-c-commands/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install pure-ftpd &amp; restrict users to their home directories (Fedora/openSuse)</title>
		<link>http://blog.idifysolutions.com/2011/09/install-pure-ftpd-restrict-users-to-their-home-directories-fedora-opensuse/</link>
		<comments>http://blog.idifysolutions.com/2011/09/install-pure-ftpd-restrict-users-to-their-home-directories-fedora-opensuse/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 17:52:04 +0000</pubDate>
		<dc:creator>Sahil Bhatia</dc:creator>
				<category><![CDATA[pure-ftpd]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[jail users]]></category>
		<category><![CDATA[openSuse]]></category>

		<guid isPermaLink="false">http://blog.idifysolutions.com/?p=85</guid>
		<description><![CDATA[Hello everyone, Steps to install pure-ftpd and jail users: Note-1) On typing &#8216;ftp localhost&#8217;, if you get &#8220;Install command &#8216;ftp&#8217; to provide command &#8216;ftp&#8217;? [N/y]&#8221; error message, don&#8217;t worry that perfectly normal.  Simply type y. This is &#8220;ftp client binary&#8221;, whereas vsftpd is &#8220;ftp server&#8221;. Step-1) To install pure-ftpd, on the terminal type:         su [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everyone,</p>
<p><strong>Steps to install pure-ftpd and jail users:</strong></p>
<p><strong>Note-1)</strong> <em>On typing &#8216;ftp localhost&#8217;, if you get &#8220;Install command &#8216;ftp&#8217; to provide command &#8216;ftp&#8217;? [N/y]&#8221; error message, don&#8217;t worry that perfectly normal.  Simply type y. This is &#8220;ftp client binary&#8221;, whereas vsftpd is &#8220;ftp server&#8221;.</em></p>
<p>Step-1) To install pure-ftpd, on the terminal type:<br />
<em>        su -c &#8216;yum -y install ftp pure-ftpd&#8217;</em></p>
<p>Step-2) To jail users to their home directories, on the terminal type:<br />
<em>        su -c &#8216;[nano/vi/emacs] /etc/pure-ftpd/pure-ftpd.conf&#8217;</em><br />
<em>        Search for text &#8220;ChrootEveryone&#8221; and change it&#8217;s value to &#8220;yes&#8221;.</em></p>
<p>Step-3) To allow local users to login, on the terminal type:<br />
<em>        su -c &#8216;[nano/vi/emacs] /etc/pure-ftpd/pure-ftpd.conf&#8217;</em><br />
<em>        Search for text &#8220;UnixAuthentication&#8221; and change it&#8217;s value to &#8220;yes&#8221;</em></p>
<p>Step-4) Restart service:<br />
<em>        su -c &#8216;service pure-ftpd restart&#8217;</em></p>
<p>Step-5) If you skip this, you will get &#8220;500 OOPS: cannot change directory:/home/user_name&#8221; error when you login to ftp server.<br />
<em>        su -c &#8216;setsebool -P ftp_home_dir on&#8217;</em></p>
<p><strong>    Congratulations! you have successfully jailed users to their respective home directories.</strong></p>
<p>Step-6) To test, on the terminal windows type:<br />
<em>        ftp localhost</em><br />
<em>        (when prompted, enter local computer login credentials)</em><br />
<em>        pwd</em><br />
<em>        ls -lh</em><br />
<em>        ls -lh ../../.. OR whatever you want to check.</em></p>
<p>&nbsp;</p>
<p><strong>I sincerely hope you liked it. Please leave your valuable comments and suggestions.</strong></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.idifysolutions.com/2011/09/install-pure-ftpd-restrict-users-to-their-home-directories-fedora-opensuse/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.idifysolutions.com/2011/09/install-pure-ftpd-restrict-users-to-their-home-directories-fedora-opensuse/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install pure-ftpd &amp; restrict users to their home directories (Ubuntu)</title>
		<link>http://blog.idifysolutions.com/2011/09/install-pure-ftpd-restrict-users-to-their-home-directories-ubuntu/</link>
		<comments>http://blog.idifysolutions.com/2011/09/install-pure-ftpd-restrict-users-to-their-home-directories-ubuntu/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 17:49:24 +0000</pubDate>
		<dc:creator>Sahil Bhatia</dc:creator>
				<category><![CDATA[pure-ftpd]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[jail users]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.idifysolutions.com/?p=83</guid>
		<description><![CDATA[Hello everyone, Steps to install pure-ftpd and jail users: Step-1) To install pure-ftpd, on the terminal type: sudo apt-get -y install pure-ftpd Step-2) To jail users to their home directories, on the terminal type:         cd /etc/pure-ftpd/conf         sudo touch ChrootEveryone (Note: Please type the name as it is. It&#8217;s case-sensitive.)         sudo [nano/vi/emacs] ChrootEveryone [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everyone,</p>
<p><strong>Steps to install pure-ftpd and jail users:</strong></p>
<p>Step-1) To install pure-ftpd, on the terminal type:<br />
<em>sudo apt-get -y install pure-ftpd</em></p>
<p>Step-2) To jail users to their home directories, on the terminal type:<br />
<em>        cd /etc/pure-ftpd/conf</em><br />
<em>        sudo touch ChrootEveryone (Note: Please type the name as it is. It&#8217;s case-sensitive.)</em><br />
<em>        sudo [nano/vi/emacs] ChrootEveryone</em><br />
<em>        type &#8216;yes&#8217; in the file, save and exit.</em></p>
<p>Step-3) Restart service:<br />
<em>        sudo service pure-ftpd restart</em></p>
<p><strong>    Congratulations! you have successfully jailed users to their respective home directories.</strong></p>
<p>Step-4) To test, on the terminal windows type:<br />
<em>        ftp localhost</em><br />
<em>        #(when prompted, enter local computer login credentials)</em><br />
<em>        pwd</em><br />
<em>        ls -lh</em><br />
<em>        ls -lh ../../.. OR whatever you want to check.</em></p>
<p>&nbsp;</p>
<p><strong>I sincerely hope you liked it. Please leave your valuable comments and suggestions.</strong></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.idifysolutions.com/2011/09/install-pure-ftpd-restrict-users-to-their-home-directories-ubuntu/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.idifysolutions.com/2011/09/install-pure-ftpd-restrict-users-to-their-home-directories-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install vsftpd &amp; restrict users to their home directories (Fedora/openSuse)</title>
		<link>http://blog.idifysolutions.com/2011/09/install-vsftpd-restrict-users-to-their-home-directories-fedoraopensuse/</link>
		<comments>http://blog.idifysolutions.com/2011/09/install-vsftpd-restrict-users-to-their-home-directories-fedoraopensuse/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 17:45:54 +0000</pubDate>
		<dc:creator>Sahil Bhatia</dc:creator>
				<category><![CDATA[vsftpd]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[jail users]]></category>
		<category><![CDATA[openSuse]]></category>
		<category><![CDATA[vsftp]]></category>

		<guid isPermaLink="false">http://blog.idifysolutions.com/?p=81</guid>
		<description><![CDATA[Hello everyone, Steps to install vsftpd and jail users to their home directories: Note-1) On typing &#8216;ftp localhost&#8217;, if you get &#8220;Install command &#8216;ftp&#8217; to provide command &#8216;ftp&#8217;? [N/y]&#8221; error message, don&#8217;t worry that perfectly normal.  Simply type y. This is &#8220;ftp client binary&#8221;, whereas vsftpd is &#8220;ftp server&#8221;. Step-1) To install vsftpd, on the [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everyone,</p>
<p><strong>Steps to install vsftpd and jail users to their home directories:</strong></p>
<p><strong>Note-1)</strong> <em>On typing &#8216;ftp localhost&#8217;, if you get &#8220;Install command &#8216;ftp&#8217; to provide command &#8216;ftp&#8217;? [N/y]&#8221; error message, don&#8217;t worry that perfectly normal.  Simply type y. This is &#8220;ftp client binary&#8221;, whereas vsftpd is &#8220;ftp server&#8221;.</em></p>
<p>Step-1) To install vsftpd, on the terminal type:<br />
<em>su -c &#8216;yum -y install ftp vsftpd&#8217;</em></p>
<p>Step-2) To edit vsftpd configuration file, on the terminal type:<br />
<em>su -c &#8216;[nano/vi/emacs] /etc/vsftpd/vsftpd.conf&#8217;</em></p>
<p>Step-3) <em>To jail users</em> to their respective home directories, search the file for text &#8220;<em>chroot_local_user</em>&#8221; and remove the &#8216;#&#8217; pound sign at the begining of the line and change it&#8217;s value to &#8216;YES&#8217;. Save and exit.</p>
<p>Step-4) Restart vsftpd service:<br />
<em>su -c &#8216;/etc/init.d/vsftpd restart&#8217;</em></p>
<p>Step-5) If you skip this, you will get &#8220;500 OOPS: cannot change directory:/home/user_name&#8221; error when you login to ftp server.<br />
<em>su -c &#8216;setsebool -P ftp_home_dir on&#8217;</em></p>
<p><strong>    Congratulations! you have successfully jailed users to their respective home directories.</strong></p>
<p>Step-6) To test, on the terminal windows type:<br />
<em>        ftp localhost</em><br />
<em>        (when prompted, enter local computer login credentials)</em><br />
<em>        pwd</em><br />
<em>        ls -lh</em><br />
<em>        ls -lh ../../.. OR whatever you want to check.</em></p>
<p>&nbsp;</p>
<p><strong>I sincerely hope you liked it. Please leave your valuable comments and suggestions.</strong></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.idifysolutions.com/2011/09/install-vsftpd-restrict-users-to-their-home-directories-fedoraopensuse/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.idifysolutions.com/2011/09/install-vsftpd-restrict-users-to-their-home-directories-fedoraopensuse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install vsftpd &amp; restrict users to their home directories (Ubuntu)</title>
		<link>http://blog.idifysolutions.com/2011/09/install-vsftpd-restrict-users-to-their-home-directories-ubuntu/</link>
		<comments>http://blog.idifysolutions.com/2011/09/install-vsftpd-restrict-users-to-their-home-directories-ubuntu/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 17:40:25 +0000</pubDate>
		<dc:creator>Sahil Bhatia</dc:creator>
				<category><![CDATA[vsftpd]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[jail users]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vsftp]]></category>

		<guid isPermaLink="false">http://blog.idifysolutions.com/?p=78</guid>
		<description><![CDATA[Hello everyone, Steps to install vsftpd and jail users to their home directories: Step-1) To install vsftpd, on the terminal type: sudo apt-get -y install vsftpd Step-2) To edit vsftpd configuration file, on the terminal type: sudo [nano/vi/emacs] /etc/vsftpd.conf Step-3) To jail users to their respective home directories, search the file for text &#8220;chroot_local_user&#8221; and [...]]]></description>
			<content:encoded><![CDATA[<p>Hello everyone,</p>
<p><strong>Steps to install vsftpd and jail users to their home directories:</strong></p>
<p>Step-1) To install vsftpd, on the terminal type:<br />
<em>sudo apt-get -y install vsftpd</em></p>
<p>Step-2) To edit vsftpd configuration file, on the terminal type:<br />
<em>sudo [nano/vi/emacs] /etc/vsftpd.conf</em></p>
<p>Step-3) <em>To jail users</em> to their respective home directories, search the file for text &#8220;<em>chroot_local_user</em>&#8221; and remove the &#8216;#&#8217; pound sign at the begining of the line and change it&#8217;s value to &#8216;YES&#8217;. Save and exit.</p>
<p>Step-4) Restart vsftpd service:<br />
<em>sudo service vsftpd restart</em></p>
<p><strong>Congratulations! you have successfully jailed users to their respective home directories.</strong></p>
<p>Step-5) To test, on the terminal windows type:<br />
<em>ftp localhost</em><br />
<em>        (when prompted, enter local computer login credentials)</em><br />
<em>        pwd</em><br />
<em>        ls -lh</em><br />
<em>        ls -lh ../../.. OR whatever you want to check.</em></p>
<p>&nbsp;</p>
<p><strong>I sincerely hope you liked it. Please leave your valuable comments and suggestions.</strong></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.idifysolutions.com/2011/09/install-vsftpd-restrict-users-to-their-home-directories-ubuntu/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.idifysolutions.com/2011/09/install-vsftpd-restrict-users-to-their-home-directories-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
