@peccul is peccu

(love peccu '(emacs lisp cat outdoor bicycle mac linux coffee))

再帰的にフォルダだけ、ファイルだけの権限を変更する

毎回探すので貼っておく

superuser.com

find /path/to/base/dir -type d -exec chmod 755 {} +
find /path/to/base/dir -type f -exec chmod 644 {} +
chmod 755 $(find /path/to/base/dir -type d)
chmod 644 $(find /path/to/base/dir -type f)
find /path/to/base/dir -type d -print0 | xargs -0 chmod 755 
find /path/to/base/dir -type f -print0 | xargs -0 chmod 644