Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^2: Modification of files from CGI script

by WalkingZero (Sexton)
on Aug 21, 2007 at 05:30 UTC ( #634005=note: print w/ replies, xml ) Need Help??

in reply to Re: Modification of files from CGI script
in thread Modification of files from CGI script

If I'm not mistaken, a lot of that can be accomplished by proper configuration of an .htaccess file if you are using Apache. However, WebDev has never been my strongest point. Regardless of whether you are running a script locally or as cgi on a web server, graff's point about file locking is very important. Any access to shared resources need to be controlled properly or you will have issues.

Comment on Re^2: Modification of files from CGI script
Replies are listed 'Best First'.
Re^3: Modification of files from CGI script
by dsheroh (Prior) on Aug 21, 2007 at 06:34 UTC
    I'm not big into web dev either, but I've never heard of being able to control that via .htaccess before (and allowing suid to any user other than the owner of the .htaccess file to be configured that way has obvious security problems). Apache does, however, have suexec, which I believe causes scripts to run suid as their owner. AFAIK, suexec is the only way for CGI/etc. scripts to run as a user other than the apache user.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://634005]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2016-02-09 08:50 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (309 votes), past polls