/Users/myname
zsh: permission denied: /Users/myname
I already gave the terminal full disc access and restarted my mac but it won't let me access this directory.
/Users/myname
zsh: permission denied: /Users/myname
I already gave the terminal full disc access and restarted my mac but it won't let me access this directory.
You need to enable auto_cd
. Add this to your ~/.zshrc
:
setopt auto_cd
If you execute the command /Users/myname
, it doesn't make sense, it's like asking a folder to execute.
You probably want to change directory, so cd /Users/myname
Use following command and enter password when promoted (Administrator mode)
sudo su
After this you can run script which is showing permission denied messages while accessing any directory or file
© 2022 - 2024 — McMap. All rights reserved.