#!/bin/bash
cd /root/web/
find blog/ -type d -print0 | xargs -0 chmod 755
find blog/ -type f -print0 | xargs -0 chmod 644
find blog/ -type f -print0 | xargs -0 chown nobody:site1
find blog/ -type d -print0 | xargs -0 chown nobody:site1
