Folder Permissons

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
theduns
Forum Newbie
Posts: 2
Joined: Sun Aug 24, 2003 6:35 pm

Folder Permissons

Post by theduns »

Hi Guys,
I have written a few content management tools for a clients website that allows them to upload images and write text files to certain directories. The web pages goes into these directories and displays the content from these folders. There is a passworded admin section of the site that uses a basic login script to the pages that allows the client to modify the content of their website. Since the client uses a web browser to do this, I had to set the permission for 'other' to write for folders in which they where writting. Now this is not the best way to go about it as 'other' has write permissions. Is it possiable to write to folders via a web browser where only group has write permissions and not other.

Thanks

Daniel
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

depending on the webserver in use you should be able to run your script under a different groupId.
My personal favorite is http://httpd.apache.org/docs-2.0/mod/perchild.html but as you can tell from this page it's ...err... still experimental.
Which webserver do you use?
theduns
Forum Newbie
Posts: 2
Joined: Sun Aug 24, 2003 6:35 pm

folder permissions

Post by theduns »

It runs on a Apache 2 server. I think thats the server you are refering to?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

yes, but still I cannot adivse to use the perchild-mpm unless you're willing to be a beta-tester ;)
Probably suExec is more suitable for your needs
http://httpd.apache.org/docs-2.0/suexec.html
Post Reply