Find all directories named 'files' under current directory and set read-write-execute permission for owner and group and no permission for other for those directories
find . -type d -name files -exec chmod ug=rwx,o= '{}' \;