Posted By

danshields on 10/26/09


Tagged

chmod


Versions (?)

Changing permission for folders only and files only


 / Published in: Bash
 

  1. for folder only to be 755 + sub dir
  2. find . -type d -exec chmod 0755 {} \;
  3.  
  4. for file only to be 644 + sub dir
  5. find . -type f -exec chmod 0644 {} \;

Report this snippet  

You need to login to post a comment.