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?.
Rohit V Bhute wrote:
I've messed up the ugo permissions on the /var/www directory which is now giving me a 403 Forbidden error. Details as follows.
Forgot to change file permissions themselves to 755. Windows withdrawal effects ;-)
On Saturday 17 June 2006 10:30, Rohit V Bhute wrote:
Rohit V Bhute wrote:
I've messed up the ugo permissions on the /var/www directory which is now giving me a 403 Forbidden error. Details as follows.
Forgot to change file permissions themselves to 755. Windows withdrawal effects ;-)
Umm so you sucessfully solved your problem i guess? IMHO the directory must be owned by apache.
Dinesh Joshi wrote:
Umm so you sucessfully solved your problem i guess? IMHO the directory must be owned by apache.
Yes, solved; though there wasn't any problem to begin with - I just managed to skip a basic step ;-). The www-data user corresponds to apache, I think. Because /var/www is listed as its home directory. Must be Ubuntu's version of the apache user and group.