將目錄權限設為755
find /path -type d | xargs chmod 755
說明:
7:user 有讀、寫、執行的權限
5:group 有讀、執行的權限
5:others 有讀、執行的權限
將檔案權限設為664
find /path -type f | xargs chmod 664
說明:
6:user 有讀、寫的權限
4:group 有讀的權限
4:others 有讀的權限
find ./ -name '......' -type f | xargs chmod 664