[英]warning: Insecure world writable dir …/osx/bin in PATH, mode 040777 with Homebrew
I'm using homebrew for compiling/installing Mac command line tools.我正在使用自制软件来编译/安装 Mac 命令行工具。 It uses ruby for implementation, and whenever I user
homebrew install SOMETHING
, I got warning: Insecure world writable dir.../osx/bin in PATH, mode 040777
warnings.它使用 ruby 进行实现,每当我使用
homebrew install SOMETHING
时,我都会收到warning: Insecure world writable dir.../osx/bin in PATH, mode 040777
警告。 The bin directory has permission of 777. Why is this warnings, and how do I remove them? bin 目录的权限为 777。为什么会出现此警告,如何删除它们?
It's generally not a good idea to have a 777
directory in your path because other users can put executables in there and trick you into running them with your privileges.在您的路径中包含
777
目录通常不是一个好主意,因为其他用户可以将可执行文件放在那里并欺骗您以您的权限运行它们。 To fix, just change it to 755
or 775
.要修复,只需将其更改为
755
或775
。 (Of course, if you're the only user of your computer, you have nothing to worry about.) (当然,如果您是计算机的唯一用户,则无需担心。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.