views:

526

answers:

1

Not sure why I'm getting this, but I just installed RVM, the new Ruby 1.9, and reinstalled a bunch of gems, and I get this

/Users/johnsmith/.rvm/rubies/ruby-1.9.1-p378/bin/gem:4: warning: Insecure world writable dir /opt/local/bin in PATH, mode 040777

Everything still runs otherwise, but I was wondering if there was a way I could get rid of it.

+4  A: 

Just chmod go-w /opt/local/bin at a shell prompt (depending on permissions you may need to sudo to do that).

Alex Martelli
Yes! you are a genius! And that concludes my successful installation of RVM, ruby 1.9, and the 64-bit challenge :D
Trip
But is it really insecure?
ming yeow
@ming, any program running on your machine can put anything it wants in `/opt/local/bin` (so in particular any executable "shadowing" any system one and other such trojans) without so much as a by-your-leave: how is that **not** insecure?!
Alex Martelli