OSX – Run BREW Generate Warning

I installed the latest Homebrew on OS X 10.6.5
Running any command will generate this warning:

< blockquote>

/usr/local/Library/Homebrew/global.rb:34: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777

Why me Got this warning? And how to remedy it?

First, there are two brew commands that are helpful when debugging problems. They are:

$ brew doctor
$ brew missing

Second, Homebrew tells you the /usr/local/bin setting Too can write who can write who can write this directory-a potential security issue. To solve this problem, you can reset your permissions to what Homebrew intends.

$ chmod 755 /usr/local/bin

If you encounter an error when trying to perform this operation, it may mean your /usr/local The directory (and subdirectories) is owned by the wrong user. If so, I would consider deleting your /usr/local directory and reinstalling Homebrew correctly. Alternatively, you can override the error by adding the last command in front of sudo and entering the administrator password:< /p>

$ sudo chmod 755 /usr/local/bin

I installed the latest on OS X 10.6.5 Homebrew
Running any command will generate this warning:

/usr/local/Library/Homebrew/global.rb:34: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777

Why do I get this warning? And how to remedy it?

First of all, there are two brew commands that are very helpful when debugging problems. They are:

$ brew doctor
$ brew missing

Second, Homebrew tells you the /usr/local/bin setting Too can write who can write who can write this directory-a potential security issue. To solve this problem, you can reset your permissions to what Homebrew intends.

$ chmod 755 /usr/local/bin

If you encounter an error when trying to perform this operation, it may mean your /usr/local The directory (and subdirectories) is owned by the wrong user. If so, I would consider deleting your /usr/local directory and reinstalling Homebrew correctly. Alternatively, you can override the error by adding the last command in front of sudo and entering the administrator password:< /p>

$ sudo chmod 755 /usr/local/bin

Leave a Comment

Your email address will not be published.