Octavian Rasnita wrote: > Hi all, > > If the user Apache which runs the cgi scripts on my server want to > delete a file that has restrictive priviledges and is owned by > another user, how can I make a cgi program to be able to delete those > files?
Deleting a file requires write privilege in the *directory* containing the file; your permissions with respect to the file itself don't matter. If the apache user doesn't have write privilege in the directory, you can create a "setuid" script that can delete the files. There are several issues with this; please read the information in "perldoc perlsec" carefully. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>