LoginSignup
24
16

More than 5 years have passed since last update.

warning: Insecure world writable dir /usr/local/bin in PATH の対処

Last updated at Posted at 2017-02-25

Vagrantを使い始めて、エラーや警告で詰まることがあるので整理しました。

対応

下記の警告がいつも出る。操作に支障は無いが修正をしたい。

$ rails -v
/home/vagrant/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/railties-4.2.5/lib/rails/app_rails_loader.rb:39: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
Rails 4.2.5

このエラーの意味は、/usr/local/binに Write権限があるのは、安全じゃないよって意味でした。
なので、このファイルの権限を変更する。

$ sudo chmod go-w /usr/local/bin

これで、警告は無くなりました。
chmodコマンドについて詳しくは ここ を見てください。

参考リンク

http://yatta47.hateblo.jp/entry/2015/02/15/152713
http://www.damp.tottori-u.ac.jp/~ooshida/unix/chmod.html
http://qiita.com/masashi-t-h/items/5f4c4fa768642aad9e06

24
16
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24
16