警告:当我运行ruby或gem命令时,不安全的可写dir [英] warning: Insecure world writable dir when I run a ruby or gem command

查看:132
本文介绍了警告:当我运行ruby或gem命令时,不安全的可写dir的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道为什么我这样做,但我刚安装了RVM,新的Ruby 1.9,并重新安装了一堆宝石,我得到这个



/用户/ johnsmith / .rvm / rubies / ruby​​-1.9.1-p378 / bin / gem:4:警告:不安全的可写dir / opt / local / bin在PATH中,模式040777

所有东西都还在运行,但我想知道是否有办法摆脱它。 解决方案

在shell提示符下(取决于您可能需要的权限> sudo ) chmod go -w / opt / local / bin >做到这一点)。


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.

解决方案

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

这篇关于警告:当我运行ruby或gem命令时,不安全的可写dir的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆