简体   繁体   English

警告:不安全的世界可写目录…/osx/bin 在 PATH,模式 040777 与 Homebrew

[英]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 .要修复,只需将其更改为755775 (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.

相关问题 警告:PATH模式040777下不安全的世界可写目录/ usr - warning: Insecure world writable dir /usr in PATH, mode 040777 如何在PATH中解决不安全的世界可写dir / usr,在Ruby上模式040777警告? - How to solve Insecure world writable dir /usr in PATH,mode 040777 warning on Ruby? 在PATH中获取警告“不安全世界可写dir / home / chance”,模式040777用于rails和gem - Getting the warning “Insecure world writable dir /home/chance ” in PATH, mode 040777 for rails and gem 运行“rails s”后如何修复“路径中不安全的世界可写目录/mnt/c,模式040777”错误 - How to fix "Insecure world writable dir /mnt/c in PATH, mode 040777" error after running "rails s" 运行 Ruby 命令时,PATH 中不安全的世界可写目录/用户/用户名,模式 040777 - Insecure world writable dir /Users/username in PATH, mode 040777 when running Ruby commands 禁止警告“不安全的世界可写目录/some/dir/” - Suppress warning “Insecure world writable dir /some/dir/” 运行ruby脚本时出现错误的“ PATH中不安全的世界可写dir foo” - Erroneous “Insecure world writable dir foo in PATH” when running ruby script 耙任务提示不安全的可写目录 - Rake tasks prompt insecure writable dir 自制程序-运行Brew Doctor后更正警告-更改路径(/ user / bin)问题 - Homebrew - Correcting warning after running Brew Doctor - Altering Path (/user/bin) issue 错误:'/bin' 不可写 - Homebrew 需要它,尝试使用 'brew doctor' 修复它:要求安装失败,状态为 1 - ERROR: '/bin' is not writable - it is required for Homebrew, try 'brew doctor' to fix it! Requirements installation failed with status: 1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM