set recursive web permissions on files and directories


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



Copy this code and paste it in your HTML
  1. find . | while read i ;do if [ -f $i ];then echo "file:${i}"; chmod 644 ${i} ; fi ; if [ -d $i ];then echo "dir:${i}" ;chmod 755 ${i} ; fi; done

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.