LoginSignup
6
4

More than 5 years have passed since last update.

複数のユーザーでHomebrewを使う

Posted at

別の管理者ユーザーを作成しhomebrewを実行したところ、エラーが発生。

Error: Cowardly refusing to 'sudo brew update'
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.

下記コマンドで、管理者ユーザーの場合、Homebrewが使えるようになる。

sudo chgrp -R admin /usr/local
sudo chmod -R g+w /usr/local

参考サイト

6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4