How do you recursively adjust file and directory permissions in Joomla?

How do you recursively adjust file and directory permissions in Joomla?

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod 707 images
chmod 707 images/stories
chown apache:apache cache

Reference:
docs.joomla.org/How_do_you_recursively_a...ctory_permissions%3F