Jump to content

File reading and writing PERMISSIONS minor problem


qskypro

Recommended Posts

Howdy,

 

Let's say I have a directory with some PHP files in it: /home/site.com/run

 

I want to be able to execute these as PHP from the site index /home/site.com, (I've been using include())

 

But at the same time I want the scripts themselves (the ones in /home/site.com/run) to not be allowed to read and write any file.

 

I tried CHMOD 111 on the /run directory, and that did indeed stop the scripts reading and writing, but unfortunately it also prevent the site index /home/site.com from accessing them at all.

 

How can I meet both of these conditions?

 

Thanks  :D

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.