nsForum logo

Welcome Guest ( Log In )

 
Reply to this topicStart new topic
> Problem Accessing Picture/aaa.jpg Files, I am getting permission errors when attempting to read a jpg file.
Vance
post May 6 2009, 11:48 AM
Post #1





Group: Verified NS Member
Posts: 3
Joined: 6-May 09
Member No.: 4,335



Hi,

I have a directory under htdocs called pictures with permissions set to 774.
I Believe I am able to upload a picture and store it into that directory.
But, when I attempt to link to a picture in that directory, I get this error:
You don't have permission to access /pictures/picture-1000011.jpg on this server.
The picture files have permissions set to 644 and I have tried changing it to 664 with no improvement.
The picture is linked to in a html page that is created via a perl script in the cgi-bin directory and I the link is set to:
../pictures/picture-1000011.jpg

Thanks for any help!
Vance
Go to the top of the page
 
+Quote Post
Guest_Duane_*
post May 6 2009, 12:43 PM
Post #2





Guests






QUOTE (Vance @ May 6 2009, 01:06 PM) *
Hi,

I have a directory under htdocs called pictures with permissions set to 774.
I Believe I am able to upload a picture and store it into that directory.
But, when I attempt to link to a picture in that directory, I get this error:
You don't have permission to access /pictures/picture-1000011.jpg on this server.
The picture files have permissions set to 644 and I have tried changing it to 664 with no improvement.
The picture is linked to in a html page that is created via a perl script in the cgi-bin directory and I the link is set to:
../pictures/picture-1000011.jpg

Thanks for any help!
Vance

I recommend that you chmod the /pictures folder to have 765 permissions.
Go to the top of the page
 
+Quote Post
Vance
post May 6 2009, 12:49 PM
Post #3





Group: Verified NS Member
Posts: 3
Joined: 6-May 09
Member No.: 4,335



QUOTE (Duane @ May 6 2009, 02:01 PM) *
I recommend that you chmod the /pictures folder to have 765 permissions.


I did that and it worked! Why?
Apparently giving public execute rights did the trick.

Vance
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version    Network Solutions © 2010 Time is now: 21st March 2010 - 07:05 AM
Domain Names | Web Hosting | Web Design | Shopping Cart Software | Online Marketing | SSL Certificates