Mac解决文件权限问题Permission Denied
在创建/编辑一些或直接打开修改的时候可能出现:(以.bash_profile为例)
{username}@xxx ~ % touch ~/.bash_profile
touch: /Users/{username}/.bash_profile: Permission denied
可能是OSX open命令的权限问题
解决方法:
终端输入
sudo chown {username} ~/.bash_profile
即可改变文件所有者。
参考解决方案:stackoverflow
P.S. {username} : 自己Mac的登录账户名