Ruby: Insecure World Writable Directory

I keep getting following warning lately on my mac.

ruby warning: Insecure world writable dir /usr/local/bin, mode 040777

Little research and I found, Ruby warns you about any world writeable directory in your PATH. Not only writeable directories but parents as well.

Fix is super quick.

chmod o-w /usr/local/bin

You can replace /usr/local/bin with any directory which ruby complains about. This fixes the issue.

This entry was posted in Developer, Tips and tagged . Bookmark the permalink.
  • Tejas Dinkar

    Home brew needs /usr/local to be writable. It may be easier to ignore that warning.

  • http://thoughtworker.in Sachin Dharmapurikar

    If you can ignore it. Yes!