首页 > 解决方案 > Mac终端无法访问文件

问题描述

我的 mac 终端无法访问文档文件夹中的文件。我收到以下错误:

zsh:权限被拒绝

在系统偏好设置中,我给了终端全盘访问权限。当我转到文档文件夹时-> 获取信息-> 我的用户名具有读写权限。我还在文件夹上运行了 chmod 777 但似乎没有任何效果。有人知道导致这个问题的原因吗?

编辑:事实证明,我无法使用终端访问单个文件。看起来我的终端没有应有的权利。

标签: macosterminaldirectorypermission-denied

解决方案


I fixed the issue! Nothing seemed to work so I wanted to reset the terminal. To do that I had te remove the following file:

~/Library/Preferences/com.apple.Terminal.plist

Then I restarted the terminal and now I can acces my files again!


推荐阅读