title: Java - glassfish - web service - local file access
body: <p>I am running a webservice using glassfish server on Ubuntu. The problem is - it is required to access a directory outside of its shared resource. Presently it is giving an error saying "Permission Denied". I set a permission into server.policy too.</p>
  
  <pre><code>grant codeBase "/home/glassfish/glassfish/test/-" {
      permission java.security.AllPermission;
  };
  </code></pre>
  
  <p>But it seems not working.
  I tried <code>&lt;property name="alternatedocroot_1" value="from=*.* dir=/home/glassfish/glassfish/test"/&gt;</code> ,  but it seems it is giving only reading permission. I need write permission also. So my question is how can I set the write permission ?</p>
  
  <p>Thanks.</p>