By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,235 Members | 1,008 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,235 IT Pros & Developers. It's quick & easy.

Delete a file from a CGI

P: n/a
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.
Jun 1 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.