title: Getting the warning "Insecure world writable dir /home/chance " in PATH, mode 040777 for rails and gem
body: <p>I've tried <a href="https://stackoverflow.com/questions/3952243/warning-insecure-world-writable-dir">this</a> but it didn't work and seemed to be for osx. I have a fresh Ubuntu 10.10 install with rvm, rails 3 and ruby 1.9.2. I have a fresh rails app but using either gem or rails results in the following warnings (with lag). </p>
  
  <p>$  <strong><em>rails -v</em></strong></p>
  
  <pre><code>/home/chance/.rvm/gems/ruby-1.9.2-p180@global/gems/railties-3.0.5/lib/rails/script_rails_loader.rb:11: warning: Insecure world writable dir /home/chance in PATH, mode 040777
  /home/chance/.rvm/gems/ruby-1.9.2-p180@global/gems/bundler-1.0.10/lib/bundler/runtime.rb:136: warning: Insecure world writable dir /home/chance in PATH, mode 040777
  Rails 3.0.5
  </code></pre>
  
  <hr>
  
  <p>$ <strong><em>gem -v</em></strong> </p>
  
  <pre><code>/home/chance/.rvm/rubies/ruby-1.9.2-p180/bin/gem:4: warning: Insecure world writable dir /home/chance in PATH, mode 040777
  1.6.2
  </code></pre>
  
  <p>Just incase it matters, here is my Gemfile:</p>
  
  <pre><code>source 'http://rubygems.org'
  
  gem 'rails'
  # Bundle edge Rails instead:
  # gem 'rails', :git =&gt; 'git://github.com/rails/rails.git'
  gem 'sqlite3'
  gem 'sqlite3-ruby', :require =&gt; 'sqlite3'
  gem "haml"
  gem "formtastic"
  gem "will_paginate"
  gem "devise"
  gem "delayed_job"
  gem "whenever"
  gem "memcache-client"
  gem "capistrano"
  group :testing do
    gem "rspec"
    gem "rspec-rails"
    gem "autotest-standalone"
    gem "autotest-rails"
    gem "autotest-growl"
    gem "mocha"
    gem "shoulda"
    gem "factory_girl_rails"
  end
  
  group :development do
    gem "cheat"
    gem "bullet"
    gem "ruby-growl"
  
  end
  </code></pre>