I do not have control over the web server

The question is not "do you have control over the web server?" but rather "do you have a normal user account on the web server, and can you run a cron job from that user account?" Also: can you locate and control the permission on the directory where these files are being uploaded?

The point is that a normal user account (your personal account, which you use to create and install web resources on this server) can be permitted to delete files that are created by the "nobody" web-server account, even if the permission on the individual files is "rw-r--r--", if the permission on the DIRECTORY is "rw-rw-rw" (which is likely to be true, otherwise "nobody" would be unable to create files there!)

So, if you are able to run an ssh shell on this server, and can run "crontab -e" as a shell command, you can define a cron job that will run under your own account, and delete files that folks have marked for deletion via some other cgi script of yours.


In reply to Re: deleting files via perl cgi by graff
in thread deleting files via perl cgi by db2admin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.