you want all content within /var/www/html owned by the user operating git repository.

chmod 755 -R /var/www/lepton

sudo chown -R ubuntu:www-data /var/www/html && chmod -R g+sw /var/www/html
Leave a Comment