I wanted to change the group of the
/var/www directory to www-data, which I did by executing the command
sudo chown -R root:www-data /var/www.
I then added myself to that
www-data group by doing
sudo adduser jeroen www-data.
To finally give the www-data group the right permissions for that directory, I did
sudo chmod -R g+w /var/www.
When I then use Nautilus to browse to that directory, using the jeroen account, I cannot create or edit any files in it. What did I do wrong?