OS Xシステムフォルダの所有者を変更しても安全ですか?

OS Xシステムフォルダの所有者を変更しても安全ですか?

Homebrewを動作させようとしています。プログラムの診断ツールは、次の提案を提供しました。

おそらくchown/usr/local/etcでなければなりません。

...

おそらく、次のことを行う必要がありますchown

/usr/local/share/man/de
/usr/local/share/man/de/man1

なぜなら、このディレクトリは書き込めないからです。以前に所有者やグループを変更したことはありません。今所有者はroot、グループはwheel、私のユーザー名は別のものです。

OS Xでこれらのフォルダの所有者を変更しても安全ですか?root私のアカウントが管理者アカウントであるにもかかわらず、私のユーザーにすべての権限が与えられていないため、他のアプリケーションに問題があるのではないかと心配しています。

ベストアンサー1

問題をより簡単に検索できるように、完全なエラーメッセージは次のとおりです。

Warning: /usr/local/etc isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a brew tries to write a file to this directory, the
install will fail during the link step.

You should probably `chown` /usr/local/etc

Warning: Some directories in /usr/local/share/man 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:

    /usr/local/share/man/de
    /usr/local/share/man/de/man1

sudo easy_installこれはインストーラ(例:MacTeXまたはImageMagickインストーラ)またはsudo pip install

次のディレクトリの所有者を変更するのは安全です。

sudo chown $USER /usr/local/etc /usr/local/share/man/de{,/man1}

ルートが所有するファイルは、作成時間でソートされて表示されます。

find /usr/local/{etc,share/man} -user root -exec stat -f '%B %N' {} \; | sort

おすすめ記事