Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to install Homebrew, and brew doctor returns a lot of warnings, one of which is this:

Warning: Some directories in /usr/local/share/locale aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `chown` them:

[list of directories in /usr/local/share/locale]

/usr/local/share/locale contains directories which have mostly two-letter names (language name abbreviations?), each of which has a LC_MESSAGES directory that contains a gnupg.mo file.

Shouldn't things like localized strings be owned by root and not writable to normal users?


UPDATE: I'm going to set the group ownership to admin and do chmod g+w, which should make them writable for me. I still would like an answer as to what the best thing to do is.

share|improve this question
    
Not necessarily. Some packages may be managed by an account created for that purpose. –  user3463 Aug 13 '12 at 5:19
add comment

1 Answer

up vote 1 down vote accepted

Did you install these files? If so, then you know what they are for. You can probably delete them if you don't need them anymore.

Whatever, setting locale files to group writable is perfectly safe. A malicious script could in theory change the spanish translation of whatever tool it is that got installed there before Homebrew: not the end of the world.

Update: The best thing to do is to figure out whose files they are and then delete them and use brew to install whatever it is that you just deleted. Mixing /usr/local with brewed and unbrewed stuff is not a good idea unless you know what you are doing.

share|improve this answer
    
I don't remember installing anything in a locale directory; it might just have been OS X. And a malicious script would have to be able to authenticate as a user in the admin group first. ;) –  Blacklight Shining Aug 14 '12 at 13:44
    
OS X never installs anything in /usr/local. –  Max Howell Aug 14 '12 at 14:31
    
Must have been gnupg (see my latest edit). –  Blacklight Shining Aug 14 '12 at 14:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.