The default permissions are correct - only root should be able to write to /var/www and you should copy your files to that folder as root instead of loosening it's permissions.

By default,...