in reply to Re^3: cgi script write to crontab
in thread how to avoid web server from getting hacked

Ok, thanks moritz. I basically have a webpage that takes input from the user. I want to process the output of that html form and do a specific action with perl script. The perl script will take arguments from what the user specified in the html form and would run in cron. So this is what I would like to do. It seems from what you were saying earlier in the chatterbox that this is unsafe. I should not run the cgi script and output into a cron file. What would you recommend to be a safe way to do this? Database? Any suggestions greatly appreciated.

Replies are listed 'Best First'.
Re^5: cgi script write to crontab
by Niner710 (Sexton) on May 14, 2008 at 03:28 UTC
    It seems when I disable SElinux then it works. I would rather not do this. Is there a workaround to this?