how to give read write permissions in linux for /var/www folder code example Example: what permissions should var/www/html have sudo chown -R www-data:www-data /var/www/html