root拥有的OSX brew可执行文件?

时间:2014-11-28 14:53:39

标签: macos homebrew

/usr/local/bin/brewroot:admin应该拥有$USER:admin吗?


背景brew update失败。

$ brew update 
error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed
Error: Failed to update tap: homebrew/dupes
error: insufficient permission for adding an object to repository database .git/objects
fatal: failed to write object
fatal: unpack-objects failed
Error: Failed to update tap: homebrew/versions
Already up-to-date.

我已经跟踪了https://github.com/Homebrew/homebrew/issues/10292https://github.com/Homebrew/homebrew/issues/9953。我的/usr/local/.git/usr/local/Cellar有$ USER:管理员权限。

但是,我发现/usr/local/brew中的brew可执行文件属于root:admin。我觉得它会$USER:admin,但是因为我不记得设置它,所以我不想改变它并弄乱一些东西。

1 个答案:

答案 0 :(得分:0)

$USER:admin。一切都应归您的用户帐户所有。像chown -R $USER Library/Homebrew这样的东西应该会有所帮助(水龙头在图书馆/水龙头下有他们的git回购)。

如果您想在多用户设置中使用Homebrew,请考虑Brewdo