title: Commands without sudo in bash do not work
body: <p>I am running a bash script and these commands in the script will not work without sudo in front of them. The script.sh is located in a folder such as /jobs/script.sh</p>
  <p>Example of commands I am trying to run in the script.sh -</p>
  <ul>
  <li><p>mv /var/app/myapp /var/app/myapp.old</p>
  </li>
  <li><p>rm file.tar.gz</p>
  </li>
  <li><p>tar -xzf /home/ubuntu/file.tar.gz -C /var/app/</p>
  </li>
  </ul>
  <p>All the above work if I add sudo in front of them.</p>
  <p>I am trying to figure out what permissions are required for them to work without adding sudo in the script.</p>
  <p>I have tried giving the script.sh rwx permissions and changing owner to root.</p>
  <p>I'm learning permissions in linux, so I'm new to this. Basically what permission should the script.sh have so that I dont have to use sudo in the bash file? Any insight would greatly help.</p>