Warning while installing the rails plugin

前端 未结 2 2130
时光说笑
时光说笑 2021-02-13 02:27

I am getting the following warning while installing any plugin in my rails application.

/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.5/lib/active_suppor         


        
2条回答
  •  不要未来只要你来
    2021-02-13 03:06

    Ruby (on all Unixes, including Cygwin) warns if you try to run an external program and your $PATH contains a world-writable directory. It doesn't just check the directories on $PATH: it checks each of their parents, too, because if /usr/local (say) is world-writeable, /usr/local/bin is subverted as easily as if it were writeable itself.

    A work-around could be to remove "other" write permission from the relevant directories.

    For instance:

    • chmod o-w /usr/local/bin
    • chmod o-w /usr/local
    • chmod o-w /cygdrive/c

提交回复
热议问题