zsh permission denied when accessing my home directory
Asked Answered
S

3

12
/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.

Sayre answered 24/4, 2020 at 12:18 Comment(0)
A
31

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

setopt auto_cd

Artema answered 1/7, 2020 at 2:55 Comment(0)
M
0

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

Middelburg answered 24/4, 2020 at 12:22 Comment(0)
H
0

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

Heat answered 18/1, 2022 at 5:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.