/usr/local/bin和/usr/local/share的权限问题 [英] Permission problems with /usr/local/bin and /usr/local/share

查看:599
本文介绍了/usr/local/bin和/usr/local/share的权限问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在新的MacBook中使用OS X Yosemite.刚刚安装了Homebrew和一些必要的软件包,最近才移到这台新计算机上.

I'm using OS X Yosemite in a fresh MacBook. Just installed Homebrew and some essential packages, having moved to this new computer recently.

我注意到一段时间后安装新的brew软件包时出现链接错误.出于某些原因,即使我多次执行chmodchgrp使其成为FP:admin(FP是我的用户名)之后,/usr/local/bin/usr/local/share的权限仍会更改回root:wheel.

I noticed that once in a while I get linking errors when I install new brew packages. For some reason, the permissions of /usr/local/bin and /usr/local/share keeps changing back to root:wheel even after I did chmod andchgrp several times to make it FP:admin (FP being my username).

请注意,它修复了一段时间的权限,允许我安装新的brew软件包,并随机(至少根据我的观察)自动更改回root:wheel.

Take note, it fixes the permissions for a time, allowing me to install new brew packages, and changes back to root:wheel automatically at random (at least as per my observation).

曾经试图对Google做出回应,但无济于事.关于我的设置可能有什么问题的任何想法?欣赏见解.谢谢!

Been trying to Google answer to no avail. Any thoughts at what might be wrong with my setup? Appreciate the insights. Thanks!

推荐答案

您是偶然使用Sophos吗?

You using Sophos by chance?

通过我遇到了完全相同的问题,结果是Sophos的自动更新受到了指责.我通过运行以下命令解决了这一问题:sudo fs_usage | grep"usr/local"

"I had this exact same issue, and it turns out Sophos auto-update was to blame. I figured this out by running: sudo fs_usage | grep "usr/local"

这篇关于/usr/local/bin和/usr/local/share的权限问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆