title: How to set 777 permission on a folder structure in Linux from Java?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/664432/how-do-i-programmatically-change-file-permissions">How do i programmatically change file permissions?</a><br>
    <a href="https://stackoverflow.com/questions/3175303/how-can-i-set-the-umask-from-within-java">How can I set the umask from within java?</a>  </p>
  </blockquote>
  
  
  
  <p>In <em>Linux</em>, I am trying to give full permission (777) to a folder structure (say ex: "home/test/sample/") for creating a <em>MySQL</em> table with changing the data directory to the user specific location from my application which is written in <em>Java</em>. </p>
  
  <p>How can I give full permission to a folder structure from <em>Java</em>?</p>