- This topic has 1 reply, 2 voices, and was last updated 15 years, 6 months ago by .
I was just trying to call hcienginerun from a CGI script. The problem is that the web server runs under a special user-id (www). I tried writing a setuid wrapper program that would call hcienginerun, but hcienginerun is a Perl script, and it is smart enough to know that it is being called setuid, and it runs with a bunch of security restrictions that prevent it from working. For example, the library search path reverts to the one that is compiled into Perl, and it can’t find even the default Perl libraries.
I could try running the web server as Hci, but that’s kind of insecure. I could try using the suexec module to get it to run as HCI.
Does anyone have any examples of CGI scripts to start and stop Cloverleaf threads and processes?
- The forum ‘Cloverleaf’ is closed to new topics and replies.