对/usr/local/lib的OS X权限被拒绝 [英] OS X permission denied for /usr/local/lib

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

问题描述

自从我改用新的Macbook专业版以来,我一直在寻找有关权限问题的任何建议/直觉/线索/答案.这就是两难境地.某些程序在安装过程中会在/usr/local/lib下复制库,运行这些程序时会崩溃,我认为这与对该文件夹中文件的权限限制有关.我遇到错误(无法从该路径访问文件),尝试安装插件以大胆,然后尝试在此文件夹下进行"ls"操作.除非我为cmd加上sudo前缀,否则我将立即获得权限拒绝.我尝试用我的用户帐户拥有/usr/local/lib/audacity文件夹,甚至仍然在这些文件上获得权限错误.重要的是要注意,该问题并非Audacity独有.我已经看到Polycom视频会议软件存在相同的问题,并且我也无法在此计算机上运行Parallels. (我没有将Parallels追溯到相同的问题,但我敢打赌它与之相关.)我隐约地回忆起我过去曾经使用过的一些奇怪的Linux cmd魔术,它不仅会授予用户权限,还会调整一些低级别的权限.允许/禁用某些事情,例如执行,我似乎还记得,允许的事情比执行要深,但是已经有好几年了.我不记得这些仓库,我想知道OS X上是否有类似的东西我可能会忽略.该位置及其中的文件是否有特殊之处?我能以某种方式改变文件系统,使文件看起来有所不同吗?无论其价值如何,如果我以root用户身份登录,我似乎至少可以使用其中一个程序.我刚刚尝试过其他功能,但还没有尝试过其他功能.请帮忙.

I'm looking for any advice/intuition/clues/answers on a permission issue that has been plaguing me ever since I switched over to a new Macbook pro. Here's the dilemma. Certain programs copy libraries under /usr/local/lib during install and upon running these programs I get a crash which I believe is related to permission restrictions to files in this folder. I've had errors (can't access files from this path) trying to install plugins for audacity and then tried doing an "ls" under this folder. I immediately get permission denied unless I prefix the cmd with sudo. I've tried owning the /usr/local/lib/audacity folder with my user account and even still I get permissions errors on these files. It's important to note that the problem is not exclusive to Audacity. I've seen the same problem with Polycom video conference software and I've also been unable to run Parallels on this machine. (I haven't traced Parallels to the same issue but I'm betting its related.) I vaguely recall some weird Linux cmd magic I used to use back in the day that would not only grant permission to a user but tweak some low level bits allowing/disabling certain things like execution and I seem to recall the permission thing ran deeper than execution but its been years. I can't recall the detils and I'm wondering if there's something similar on OS X that I'm possibly overlooking. Is there something special about that location and the files there in? Could I have somehow altered my file system in a way tht the files appear different? For what its worth, I seem to be able to use at least one of the programs if I log in as root. I haven't tried with the other programs as I've just discovered the ability. Please help.

推荐答案

听起来该文件夹不是世界可执行文件.试试:

It sounds like the folder isn't world executable. Try:

sudo chmod 755 /usr/local/lib

然后您应该能够使用ls或文件夹中的其他任何内容(仍然不允许您写,但是您的用户帐户无论如何都不能这样做)

and then you should be able to use ls or anything else in the folder (still won't allow you to write but your user account shouldn't be able to do that anyway)

这篇关于对/usr/local/lib的OS X权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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