Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Problems? Is your data what you think it is?
 
PerlMonks  

RE: Creating a file in a CGI script...

by Anonymous Monk
on May 19, 2000 at 17:49 UTC ( [id://13297]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Creating a file in a CGI script...

ooops.

Maybe a course in Unix basics would've helped...

You've got to remember that (with the exception of the setuid option in apache that isn't enabled by default), apache will run scripts with the permissions of the user it is running at. If it's installed correctly, it will be running as an unprivilaged user (perhaps the nobody user, or a specific user for the server). So you have to setup directory permissions as appropriate. To have the ability to create new files, you must have write permission of the directory. This is because you are changing the directory, effectively, whereas writing to, or over a file already in existance, requires just write permission on that file.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://13297]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.