Author |
|
DeliriumServers
Joined: 17 Jun 2006 Posts: 54 Location: H Town
|
Posted: Sun 23 Jul '06 7:23 Post subject: confine directories |
|
|
Ok, I have mod_vd working, but now I need to find out how to limit directories. I have domain folders inside of net,com,org folders. These domain folders should not be allowed to interect with each other. Say a client uploads a file management script, they should not be able to access the other user folders, or write to them in any way. I have my php base directory set to the directory holding the net,com,org folders. I think this would be a job for mod_security, but I have no idea how to do it.
Thanks!
Delirium |
|
Back to top |
|
pnllan
Joined: 05 Dec 2005 Posts: 221
|
Posted: Sun 23 Jul '06 8:48 Post subject: |
|
|
Here's a fairly well written page from the Apache manual:
http://httpd.apache.org/docs/2.2/howto/auth.html
The information on this page will give you the basics
After reading the info on that page check out the section Authorization (Related Modules and Directives | Authorization (see the Require directive)) near top of the page, and read about the capabilities of the various mods listed. I don't know if mod-security is the right way to go or not - maybe someone else can comment on it's use in a situation like this. |
|
Back to top |
|
DeliriumServers
Joined: 17 Jun 2006 Posts: 54 Location: H Town
|
Posted: Sun 23 Jul '06 18:32 Post subject: thanks |
|
|
thanks, I gave the page a read.
however, that looks like passwording and creating users for directories. I'm looking for something that will prevent scripts from escaping their directories and affecting other folders.
thanks.
delirium |
|
Back to top |
|
DeliriumServers
Joined: 17 Jun 2006 Posts: 54 Location: H Town
|
Posted: Mon 31 Jul '06 22:42 Post subject: |
|
|
bump?
Admin note:
We are not "bumping" here. In no way can we press Apacherians to help. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 31 Jul '06 23:08 Post subject: Re: thanks |
|
|
DeliriumServers wrote: |
I'm looking for something that will prevent scripts from escaping their directories and affecting other folders.
|
Than you should ask in a forum for your scripting language. if you code your self, you can prevent that by coding. If others code there are different solutions.
e.g. For PHP you can set open_basedir in php.ini
DeliriumServers wrote: |
bump?
|
Sorry that we help in your rare spare time.... |
|
Back to top |
|
DeliriumServers
Joined: 17 Jun 2006 Posts: 54 Location: H Town
|
Posted: Mon 31 Jul '06 23:27 Post subject: |
|
|
Sorry about any rudeness. I was just wondering if anyone knew how to do this. I decided to ask here because I was not looking for a language specific directive but one that would control all scripts running through apache.
Thank you for your time,
Delirium
I will note in the future that bump is an offensive thing. |
|
Back to top |
|