LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-10-2003, 07:42 PM   #1
rocketgo
Member
 
Registered: Oct 2003
Posts: 37

Rep: Reputation: 15
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
 
Old 11-10-2003, 07:48 PM   #2
xpt
LQ Newbie
 
Registered: Nov 2003
Posts: 3

Rep: Reputation: 0
have U already change the permissions over those directories( your home directory and the public_html)?
 
Old 11-10-2003, 08:04 PM   #3
rocketgo
Member
 
Registered: Oct 2003
Posts: 37

Original Poster
Rep: Reputation: 15
what shoucd i change them to

it depends on what they should be changed to i changed them to 777
 
Old 11-10-2003, 08:15 PM   #4
rocketgo
Member
 
Registered: Oct 2003
Posts: 37

Original Poster
Rep: Reputation: 15
t

thanks i got it to work
 
Old 11-10-2003, 08:15 PM   #5
Covel
Member
 
Registered: Oct 2003
Location: Portugal
Distribution: Gentoo
Posts: 116

Rep: Reputation: 16
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!!

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--
 
Old 11-10-2003, 08:19 PM   #6
rocketgo
Member
 
Registered: Oct 2003
Posts: 37

Original Poster
Rep: Reputation: 15
t

thanks i did not know i gave that much out
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
All users have same web browser settings banner Linux - General 3 11-16-2005 09:59 PM
Adding users to Web server KrGAce Linux - Enterprise 4 02-22-2005 03:17 AM
Where's the users web directory? AppleMan Linux - Newbie 9 03-13-2004 07:48 PM
Deny some users access to the web with IPtables? osX-linux Linux - Networking 4 06-22-2003 02:42 PM
How can I allow my users to have a web page? romanillo Linux - Newbie 1 11-19-2001 10:19 AM


All times are GMT -5. The time now is 10:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration