I've messed up the ugo permissions on the /var/www directory which is now giving me a 403 Forbidden error. Details as follows.
1. 'www-data' user and group - created (I assume) when I installed apache2 and used by it. 2. The /var/www directory had 'root' in its owner and group fields. 3. I changed the owner and group of /var/www to 'www-data' and added 'root' and 'rohit' (normal user) to the 'www-data' group and changed the directory permissions to 775.
Now, I get a 403 error. The apache2-default folder, which is owned by 'root' is accessible through through the server.
Can anybody tell me the right permissions of the www directory so I can add/edit/delete stuff without using sudo?.