LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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


Closed Thread
  Search this Thread
Old 10-05-2005, 01:26 AM   #1
baosheng
Member
 
Registered: Oct 2004
Location: Lubbock, TX, USA
Distribution: Ubuntu 7.10
Posts: 74

Rep: Reputation: 15
Errot 403 on 666 permission file


I encounter a strange problem today.
I used chmod command in my web page directory,/www.I changed all file privilege into 666 in order to allow all php scripts write files.
But when I access them vary http in the browser,the browser said

Forbidden

You don't have permission to access /blogcms/index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.54 (Unix) PHP/4.3.11 Server at 127.0.0.1 Port 80

I was puzzled.

can anyone help me?
 
Old 10-05-2005, 07:16 AM   #2
lanczer
LQ Newbie
 
Registered: Sep 2005
Posts: 11

Rep: Reputation: 0
first you have to edit httpd.conf file
next service httpd restart
next chmod -R 755 /xxx
 
Old 10-08-2005, 02:41 AM   #3
baosheng
Member
 
Registered: Oct 2004
Location: Lubbock, TX, USA
Distribution: Ubuntu 7.10
Posts: 74

Original Poster
Rep: Reputation: 15
It's funny
if I
chmod 666 *
or
chmod 666 * -R
I can't access files via HTTp

but if I
chmod a+x * -R
it's accessable
 
Old 10-08-2005, 03:46 AM   #4
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
Directories need to (and only need to) have execute permission for you to access stuff inside it. So what you have is probably something inside a directory that is not executable. On directories, read permission lets you list it, and write permission lets you create or delete files in it, but it is execute permission which allows you to access files and directories inside. In fact, a directory with just execute permission and no read or write permission will allow you to access its contents fine, if you know their names; but you won't be able to list the names of its contents.
 
Old 10-10-2005, 05:00 AM   #5
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

If your question hasn't been answered continue this dicussion here.
 
  


Closed Thread



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
why "permission denied" though chmod 666? baosheng Linux - Networking 12 10-10-2005 11:40 PM
permission problems (403) with bugzilla using apache ttilt Linux - Networking 2 07-19-2004 03:58 PM
666 furfurdemon666 LinuxQuestions.org Member Intro 2 04-18-2004 09:30 PM
wget problem - 403 error but I can dl the file in windows Mytherall Linux - Newbie 1 02-27-2004 10:04 PM
chmod 666 N_A_J_M Linux - General 4 02-09-2003 03:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:29 PM.

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
Open Source Consulting | Domain Registration