title: persist permissions to all files in directory HDFS
body: <p>I am trying to do a chmod 755 on all the directories and files in an HDFS directory but it wont persist all the way down.</p>
  
  <p>for example, if I have a directory like this:</p>
  
  <pre><code>/home/set1/data1/file1.txt
  </code></pre>
  
  <p>I need to do this so my app can access it:</p>
  
  <pre><code>haddop fs -chmod 755 /home/set1/*
  haddop fs -chmod 755 /home/set1/data1/*
  haddop fs -chmod 755 /home/set1/data1/file*
  haddop fs -chmod 755 /home/set1/data2/*
  haddop fs -chmod 755 /home/set1/data2/file*
  haddop fs -chmod 755 /home/set1/data3/*
  haddop fs -chmod 755 /home/set1/data3/file*
  </code></pre>
  
  <p>how do I get the permission to set for each directory and file in the path in HDFS?</p>