Sftp file upload permission denied

July 9, 2021 . 1 MIN READ

https://www.digitalocean.com/community/questions/permission-denied-writing-files-through-sftp

make sure your user is a member of the www-data group:

sudo usermod -a -G www-data $USER

then give group permissions:

sudo chmod -R 775 /var/www

Leave a Reply

Your email address will not be published. Required fields are marked *