Delete a file from a CGI

M

Matias Surdi

HI!

I want to delete a file from a CGI, but I always get a Permission denied
error.

I've tryed this after creating the file (from a normal script):

os.chmod(".lock",stat.S_IMODE(stat.S_IRWXU | stat.S_IRWXO | stat.S_IRWXG))
os.chown(".lock",pwd.getpwnam("nobody")[2],pwd.getpwnam("nobody")[3])

but the CGI still can't delete the file.

I will appreciate very much your help.

Thanks a lot.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top