Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

zsh permission denied when accessing my home 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.

like image 680
cdott Avatar asked Apr 24 '20 12:04

cdott


People also ask

How do I fix zsh Permission denied in Kali Linux?

If you are trying to execute a script on the Terminal using the Zsh shell and you get permission denied then make sure that the script has the execute permissions. You can do that by using the ls command. Use the chmod command to add execute (x) permissions to the script. Now if I try to run the script again it works!


1 Answers

You need to enable auto_cd. Add this to your ~/.zshrc:

setopt auto_cd

like image 80
11 revs, 3 users 72% Avatar answered Sep 20 '22 16:09

11 revs, 3 users 72%