Changing permissions recursively by files and directories


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

In order to avoid make files executable, you can use these to chmod files and directories differently.


Copy this code and paste it in your HTML
  1. for folders(directories):
  2. find . -type d -exec chmod 777 {} \;
  3.  
  4. for files:
  5. find . -type f -exec chmod 666 {} \;

URL: http://www.blog.highub.com/shell/linux-chmod-777-recursively/comment-page-1/#comment-8350

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.