Find all directories under current directory and make them read, write, and executable for owner & group and remove read-write-execute permission for other
find . -type d -name files -exec chmod ug+rwx,o-rwx {} \;