error: unable to unlink old 'docroot/sites/default/settings.php': Permission denied code example Example: laravel remote: error: unable to unlink old 'public/.htaccess': Permission denied sudo chmod -R g+w