警告:在PATH模式040777中不安全的可写dir / usr / local / bin [英] warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777

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

问题描述

每次运行这个命令 rails server
$ b

Every time I run this command rails server:


warning:Insecure世界可写dir / usr / local / bin在PATH模式下040777

warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777

我在这里搜索了一个解决方案,他们说要输入: chmod go -w / usr / local / bin

I searched for a solution here and they said to type: chmod go-w /usr/local/bin

但是我得到这个错误:

But I get this error:


chmod:无法更改/ usr / local / bin上的文件模式:不允许操作

chmod: Unable to change file mode on /usr/local/bin: Operation not permitted

我使用OS X。

推荐答案

您需要拥有root权限才能执行此操作。如果您还不是管理员用户,请以管理员身份登录。然后使用'sudo'来更改权限:

You will need to have root access to do this. If you aren't already the administrative user, login as the administrator. Then use 'sudo' to change the permissions:

sudo chmod go-w /usr/local/bin

显然,这意味着除了通过'sudo'外,你不能再在/ usr / local / bin中安装资料,但是你可能不应该那样做。

Obviously, that will mean you can no longer install material in /usr/local/bin except via 'sudo', but you probably shouldn't be doing that anyway.

这篇关于警告:在PATH模式040777中不安全的可写dir / usr / local / bin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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