1

I cannot list files in the Desktop folder using the terminal:

Desktop % ls -l
total 0
ls: .: Operation not permitted

I have no problems accessing the Desktop folder or its subfolders with the Finder app.

OS: Sonoma 14.0 (23A344)
Terminal: iTerm2

I have checked the permissions for the Destkop folder and some of its subfolders using Finder's "Get Info" panel (Cmd+I) and my user has R+W permissions (as expected).

agarza
  • 2,274

1 Answers1

2

It turns out that applications have an additional set of permissions over the user folders.

I had to allow iTerm2 access to the Desktop folder:

System Settings => Privacy & Security => Files and Folders => iTerm => Desktop Folder => Enable

enter image description here