Posted By

moonbather on 11/01/08


Tagged

webpermissions


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

jamesming
yosemite610
annalog


set recursive web permissions on files and directories


 / Published in: Bash
 

  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  

You need to login to post a comment.