title: bash permission set to 777 but file execution still denied
body: <p>I wrote a bash script and am trying to execute it from sh but I am getting a "permission denied error". I set to permissions to 777 but it is still preventing me from executing the file.</p>
  
  <pre><code># which sh
  /bin/sh
  # ls -l myscript.sh
  -rwxrwxrwx    1 root  wheel  974 Nov  4 09:16 myscript.sh
  # ./myscript.sh
  zsh: permission denied: ./myscript.sh
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>