title: Linux: Permission denied when tried to run a Linux Script
body: <p>When i tried toe execute a Script for running a java program   under Linux , it started giving this </p>
  
  <pre><code>java.io.FileNotFoundException: ./mail.log (Permission denied)
          at java.io.FileOutputStream.openAppend(Native Method)
          at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:177)
          at java.io.FileOutputStream.&lt;init&gt;(FileOutputStream.java:102)
          at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
  </code></pre>
  
  <p>Please let me know , how can i resolve this ?</p>
  
  <p>Thanks </p>