« Blog

Creating a Digital Ocean SFTP user with the right permissions

Here is the magic:

sudo adduser <username> www-data
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rwX /var/www
ln -s /var/www/html/ www

Ends: