title: can not read file from linux system using java
body: <p>I am trying to read/write files on Ubuntu 12.04.
  I set permission of that directory by chmod -R 777 .
  But still when I call canRead() method on that directory it returns false.</p>
  
  <p>my directory is /root/Temp</p>
  
  <p>please help me to solve this problem</p>
  
  <p>Code (<em>copied from comments</em>):</p>
  
  <pre><code>File xyz = new File("/root/Temp"); 
  System.out.println("filename :"+xyz.getPath()); 
  System.out.println("can read :"+xyz.canRead()); 
  String[] children = xyz.list(); 
  </code></pre>
  
  <p>Children is <code>null</code>, output of can read is <code>false</code>.</p>