zsh: permission denied on Ventura

Hi.


I am c developper. i install osx Ventura and I can't run my script. I did

  1. Active Developper Mode for terminal app
  2. Active Full Drive Access for terminal app
  3. chmod +x of build script and folder
  4. Check Folder Owner has Read/Write Permission


But it still zsh: permission denied


So I no idea what to do.

Posted on Jan 9, 2023 06:21 AM

Reply

Similar questions

15 replies

Jan 9, 2023 06:40 AM in response to optixpro

Did you do the following:


sudo /usr/bin/chsh -s /bin/zsh


and create a ~/.zshrc dot file to establish your PATH, prompt, and other shell settings. Zsh will not read any Bash dotfiles.


Is the first line in your script:


#!/bin/zsh


and if you are using any package manager, you need to have the full path to its bin directory. For example, to find and run Homebrew packages on Apple Silicon Macs, you would place /opt/homebrew/bin in your PATH. For Intel Macs, it would be /usr/local/bin.


If your script is referencing an application that you built, then you may need to give your application the expected privileges for Full Disk Access in addition to the Terminal application.

Jan 23, 2023 08:25 AM in response to optixpro

optixpro wrote:

1. Active Developper Mode for terminal app

That's only for debugging apps

2. Active Full Drive Access for terminal app

Maybe a good idea if you are a heavy Terminal user. Otherwise, irrelevant to this problem.

3. chmod +x of build script and folder

Maybe necessary if the script and folder previously had incorrect permissions are you were trying to execute them via the shebang line. Irrelevant otherwise.

4. Check Folder Owner has Read/Write Permission

Irrelevent.

But it still zsh: permission denied

So I no idea what to do.

I'm going to take a wild guess. Tell me if I'm correct. You installed Homebrew didn't you?


Yeah, you'll need to get rid of that vile thing.

Jan 23, 2023 08:37 AM in response to Randall_2023

Hi Randall - I think it works ...


-r-------- 1 tomek staff 7 Oct 14 11:14 .CFUserTextEncoding

-rw-r--r--@ 1 tomek staff 14340 Jan 23 15:30 .DS_Store

drwx------+ 6 tomek staff 192 Jan 19 23:33 .Trash

drwxr-xr-x 4 tomek staff 128 Oct 9 10:37 .config

drwx------ 3 tomek staff 96 Oct 12 23:22 .cups

drwx------ 4 tomek staff 128 Oct 9 10:38 .putty

-rw------- 1 tomek staff 1554 Jan 23 15:47 .zsh_history

drwx------ 20 tomek staff 640 Jan 23 17:20 .zsh_sessions

drwx---rwx@ 27 tomek staff 864 Jan 23 17:23 Desktop

drwx------@ 12 tomek staff 384 Jan 23 15:40 Documents

drwx------+ 92 tomek staff 2944 Jan 23 17:13 Downloads

drwx------@ 89 tomek staff 2848 Jan 19 23:56 Library

drwx------ 4 tomek staff 128 Oct 10 23:11 Movies

drwx------+ 4 tomek staff 128 Oct 7 12:27 Music

drwx------+ 6 tomek staff 192 Jan 23 15:08 Pictures

drwxr-xr-x+ 4 tomek staff 128 Oct 7 00:08 Public

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

zsh: permission denied on Ventura

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.