Help! "zsh: permission denied" Error on My Mac

Recently, I had issues with my external drive on Mac. I got “zsh permission denied” in Terminal when attempting to access the external drive’s address.
The drive isn’t locked and I have full read and write access.
How can I do?

Maybe you can modify permission with Terminal.

  1. Finder > Applications > Utilities > Terminal.
  2. Type sudo chmod -R 755 /Volumes/YourExternalDriveName.(Replace YourExternalDriveName with your actual drive name.)

Or go to Apple menu > System Settings > Privacy & Security > Full Disk Access, then add your Terminal app to the list.

Changing the ownership of the directory can also help: Enter chown -R $USER:$USER /path/to/directory in Terminal.

This post can help you a lot: How to Fix Zsh Permission Denied in Mac Terminal?