如何解决不安全的世界可写的dir / usr在PATH,模式040777红宝石警告? [英] How to solve Insecure world writable dir /usr in PATH,mode 040777 warning on Ruby?

查看:1151
本文介绍了如何解决不安全的世界可写的dir / usr在PATH,模式040777红宝石警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:213:warning:Insecure world writable dir / usr in PATH,mode 040777

我在Stackexchange上搜索解决方案后试过这两个命令,我。它仍然显示我上面粘贴的警告。

I've tried these two commands after searching for solutions on Stackexchange, but it didn't work for me. It still shows me the warning which I've pasted above.

sudo chmod 775 /usr/local

sudo chmod go-w /usr/local/bin

如何修复此警告消息?我正在运行OS X 10.9小牛

How do I fix this warning message? I'm running OS X 10.9 Mavericks

推荐答案

学习仔细阅读错误消息。

Learn to read the error messages closely.

Insecure world writable dir /usr in PATH

请注意,这不是说 / usr / local

要确认此诊断,请使用

 ls -ld /usr
 drwxrwxrwx  14 ownerID  groupID     4096 Dec 10  2010 /usr
 #-------^-  is the world-writeable  part

正如你所知,你可以用

 sudo chmod 755 /usr


$ b b

编辑
Folks,也可以在

Edit Folks, also see my scripted solution in

Unix安装程序找不到文件的路径,我正在输入确切的路径

IHTH

这篇关于如何解决不安全的世界可写的dir / usr在PATH,模式040777红宝石警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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