title: Shell Script- Permission Denied
body: <p>I was trying out a very small script </p>
  
  <pre><code>#!/bin/sh
  
  test="$(/home/dell/case3.3/private.key)"
  
  echo $test
  </code></pre>
  
  <p>I call this file <code>test1.sh</code></p>
  
  <p>I try to access a file named <code>private.key</code>
  Here is the permission set for the file <code>private.key</code>
  <code>-rw-rw-r--</code></p>
  
  <p>Here is the permission set for the file <code>test1.sh</code>
  <code>-rwxrwxrwx</code></p>
  
  <p>I have also tried to do </p>
  
  <p><code>chmod u+x test1.sh</code></p>
  
  <p>and </p>
  
  <p><code>chmod 755 test1.sh</code></p>
  
  <p>In my agony, I also tried 
  <code>chmod 777 test1.sh</code></p>
  
  <p>I believe that <code>777</code> should give it all the permissions like it did .. </p>
  
  <p>I don't understand what the problem is, why is there a <code>permission denied</code></p>
  
  <p>I act as the <code>super user</code></p>