Search the entire file system (starting from the root directory) up to 4 levels deep for any files ending with ".jpg" and change the permissions to 775 for each file found.
find / -maxdepth 4 -name '*.jpg' -exec chmod 775 {} \;