Changing permission for folders only and files only


/ Published in: Bash
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.