title: Modify permission of a moved file in unix
body: <p>I am moving a file from my server storage area to NAS (network attached storage).
  The move command is in my script and executed daily. As :-</p>
  
  <pre><code>find . \ -mtime +0 -exec mv {} target \ ;
  </code></pre>
  
  <p>From my knowledge above command is supposed to move files modified last between 24hrs and 48hrs.By default the file moved gets permission of 64 . Now i wanted to change permission to 644 for these moved files. Note that file is moved from server to NAS. I added the below command in script </p>
  
  <pre><code>find target \ -mtime 0 -exec chmod 644 {}  \ ;
  </code></pre>
  
  <p>Note the 0 and not +0 in above command .But this does not seem to work . Is it because due -mtime +0 means last modified b/w 24hr and 48hr and that is retained when file is moved from server to NAS. what would be the appropiate mtime value to be provided by me in this case . I know a simple way out may be to give it as <code>mtime -3</code> which will modify permission for all files modified less than 72 hrs . But i do not want this command to run over all 3 days of moved files but just on one which has been moved via my command 
  <code>find . \ -mtime +0 -exec mv {} target \ ;</code> </p>