find.1posix /var/www -type d -exec sudo chmod 2775 {} +
find files
source manpages: find