I have a perl script which creates images(files) on a shared web server. Part of the functionality of the web site will include allowing users to delete images they no longer need.
I have tried using chmod in the perl script that creates the images but when I take a look at the image created, it shows the same (default -rw-r--r-- ). I have looked at the archives and don't see any specific pointers for allowing a nobody process to delete a file. The only suggestion I found is for deleting a temporary file that is created within the same script.
How would I delete a file that is created outside of the script?