Set Default Permissions¶ # Folders find /path/to/dir -type d -exec chmod 755 {} \; # Files find /path/to/files -type f -exec chmod 644 {} \;