Rails - 警告:不安全的世界可写dir

时间:2015-06-18 04:20:25

标签: ruby-on-rails ubuntu ubuntu-14.04

我在运行rails s

时收到此警告
/home/dixon/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:301: warning: Insecure world writable dir /home/dixon/.rvm/gems/ruby-2.1.2@ukm/bin in PATH, mode 040777
/home/dixon/.rvm/gems/ruby-2.1.2@global/gems/bundler-1.6.2/lib/bundler.rb:301: warning: Insecure world writable dir /home/dixon/.rvm/gems/ruby-2.1.2@ukm/bin in PATH, mode 040777

我试试这个

sudo chmod go-w /home/dixon

但没有改变,警告仍然出现。

2 个答案:

答案 0 :(得分:0)

尝试:

sudo chmod go-w /home/dixon/.rvm/gems/ruby-2.1.2@ukm/bin

答案 1 :(得分:0)

使用-R递归授予权限。

sudo chmod -R go-w /home/dixon