Warning when installing the rails plugin

When installing any plugin in my rails application, the following warning appears.

/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/core_ext/kernel/agnostics.rb:7: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 

Can someone tell me how to solve this problem? Thanks

+15
ruby ruby-on-rails ruby-on-rails-plugins
May 20 '10 at 10:02
source share
2 answers

Ruby (on all Unix, including Cygwin) warns you if you are trying to run an external program, and your PATH $ contains a writable directory in the world. It doesn’t just check directories on $ PATH: it also checks each of its parents, because if / usr / local (say) is writable worldwide, / usr / local / bin is reset as easily as if it were available for the record itself.

A workaround may be to remove the β€œother” write permission from the respective directories.

For example:

  • chmod ow / usr / local / bin
  • chmod ow / usr / local
  • chmod ow / cygdrive / c
+34
May 20 '10 at 10:04
source share

This is because / usr / local / bin is written to the application whenever possible. You can fix this by changing permissions for this directory.

+1
May 20 '10 at 10:04
source share



All Articles