Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Permissions for a cgi script

by eXile (Priest)
on Apr 19, 2005 at 14:35 UTC ( [id://449262]=note: print w/replies, xml ) Need Help??


in reply to Permissions for a cgi script

normally for apache to be able to write to a directory this directory has to be writable+executable by the user the apache process runs as, look at the output of 'ps' on unix, for example ps -Ao user,group,command will give you username,groupname and commands of all running commands on your machine. If your apache runs as user 'nobody', you can make a directory writable+executable by nobody and apache should be able to write there. So:
mkdir -p /some/dir chown nobody /some/dir chmod 700 /some/dir
Will create a dir that is exclusively readable/writable by 'nobody'. The 'read' permission is not strictly necessary but normally is quite handy.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-23 22:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found