LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   users web (https://www.linuxquestions.org/questions/linux-software-2/users-web-114586/)

rocketgo 11-10-2003 06:42 PM

users web
 
i am runing apache 2 on a yellow dog system but i am have trouble getting the users public_html file to be viewable from the web i keep getting this error


Forbidden
You don't have permission to access /~bjones/ on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.


any help whould be welcome thanks

xpt 11-10-2003 06:48 PM

have U already change the permissions over those directories( your home directory and the public_html)?

rocketgo 11-10-2003 07:04 PM

what shoucd i change them to
 
it depends on what they should be changed to i changed them to 777

rocketgo 11-10-2003 07:15 PM

t
 
thanks i got it to work

Covel 11-10-2003 07:15 PM

Re: what shoucd i change them to
 
Quote:

Originally posted by rocketgo
it depends on what they should be changed to i changed them to 777
WOW! That's too much permissions!! :D

It should work that way thou

directories should be 711 at least
This way, the user can do anything to the directory, group and others can only execute it wich is enough for reading files in the directory

It should look like drwx--x--x


Files permission depend on type of file.

html and php should be 644
User can read and write to files, group and others can only read the file

-rw-r--r--

rocketgo 11-10-2003 07:19 PM

t
 
thanks i did not know i gave that much out


All times are GMT -5. The time now is 04:02 AM.