- chmod 777 attach backup cache counter diff trackback wiki 2>/dev/null
- chmod 666 wiki*/*.txt cache/*.dat 2>/dev/null
-)
+
+ # ALL: Read only
+ find . -type f | while read line; do
+ chmod 644 "$line"
+ done
+
+ # Add write permission for PukiWiki
+ chmod 777 attach backup cache counter diff trackback wiki*
+ chmod 666 wiki*/*.txt cache/*.dat
+
+) 2>/dev/null