修复Homebrew warning Insecure world writable dir /usr/local/bin in PATH, mode 040777

Author Avatar
Karl Zeo Jul 06, 2017
  • Read this article on other devices

某天手残,乱改目录权限,导致 Homebrew 频繁爆 warning ,虽然不影响使用,但是,作为一个强迫症,我看着难受啊.

经过一番Google,解决方案如下.

sudo chmod 755 /usr/local /usr/local/bin
sudo chown -R $(whoami) /usr/local

再次使用, warning 消失.