Search code examples
bashpermissionsosx-lionuser-permissionspath-variables

Strange systems permissions warnings when running processes in bash


I am getting the following warnings when I run homebrew or any of the ruby web servers locally.

Does anyone know how to get them to go away?

larson:local larson$ brew doctor
/usr/local/Library/Homebrew/global.rb:65: warning: Insecure world writable dir /Users/larson in PATH, mode 040757
/usr/local/bin/brew:74: warning: Insecure world writable dir /Users/larson in PATH, mode 040757
/usr/local/Library/Homebrew/global.rb:65: warning: Insecure world writable dir /Users/larson in PATH, mode 040757
/usr/local/bin/brew:74: warning: Insecure world writable dir /Users/larson in PATH, mode 040757
Your system is raring to brew.

Solution

  • Just remove world write permissions from the directory. As it's your home directory, it really shouldn't have them

    chmod o-w /Users/larson