title: How to undo incorrect manual recursive changes in file and directory permissions?
body: <p>I am new to perforce and unix. While doing a <strong>'p4 sync'</strong> was getting an error <strong>"can't clobber writable files"</strong> for some of my files.
  I then did a <strong>"chmod -R 555 ./*"</strong> , thinking that it would remove the write permissions for the files that were giving me the above mentioned error. I didn't know that we have different permissions for directories and files in perforce. So now I have set r-x permissions for all directories and files, and now when I try to do a 'p4 sync' I am getting the following kind of error for all the files:</p>
  
  <p><strong>open for write: /home/path_to_file/tmp.18455.196170: Permission denied</strong></p>
  
  <p>What should I do to revert back the original permissions that perforce provides?</p>