Added by Dimitri Butko, last edited by Dimitri Butko on Apr 21, 2010  (view change)

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

find . -type f -name "*.php" -exec chown root {} \;
find . -type f -name "*.php" -exec chmod 0544 {} \;

find . -type f -name "*.js" -exec chown root {} \;
find . -type f -name "*.js" -exec chmod 0544 {} \;

find . -type d -name "*.svn" -exec chown root -R {} \;
find . -type d -name "*.svn" -exec chmod 0000 -R {} \;

find . -type f -name "*.htaccess" -exec chown root {} \;
find . -type f -name "*.htaccess" -exec chmod 0544 {} \;