Page 1 of 1

Forbidden Access woes...

Posted: Mon Aug 08, 2005 6:09 am
by dwfait
Hi..i just installed Ubuntu, and i installed Apache via apt-get, and every time i go to a page in var/www/ it gives me:

Forbidden

You don't have permission to access /index.html on this server.
Apache/2.0.53 (Ubuntu) Server at http://www.endian.co.uk Port 80

However, i can access the html file at: http://www.endian.co.uk/apache2-default/

Please help, as i am very new to Linux and very confused.

Posted: Mon Aug 08, 2005 6:21 am
by dwfait
Nevermind, i have fixed it..while the folder was CHMOD'd to 777, the files created in there werent. How would i set it up so files created in that folder and all subfolders have CHMOD of 777?

Posted: Mon Aug 08, 2005 6:38 am
by feyd
777 is a pretty dangerous permission setting... are you sure you want to use that?

Why not restrict it to the owner with full rights? You can set the owner to the web-server user.. then the web-server should always be able to get the pages, yet stay fairly secure otherwise..

Posted: Mon Aug 08, 2005 9:48 am
by theda
Isn't the Cmod for what you're talking about 766? First number for owner, second for server, third for client? 7->write, execute, view. 6, write view, 5 view? Can't quite remember the chmod value meanings anymore.