in reply to Re^7: Failed System/Exec Call under Right Permission with CGI
in thread Failed System/Exec Call under Right Permission with CGI

McDarren,

Did you try running "never.cgi" from the browser?
I tried running "never.cgi" from linux command line. It works.

But not when I execute from the browser:

http://mys_server.com/~myname/MyTest/cgi-bin/never.cgi
BTW, I also placed "never.pl" under cgi-bin/.

Following my msg to you. What's the permission like for your test/ directory?
I had "chmod 755" for my results/ directory. Is it right?

And where is the location of your test/ directory ? under this?
/home/yourname/public_html/somedir/test/


---
neversaint and everlastingly indebted.......

Replies are listed 'Best First'.
Re^9: Failed System/Exec Call under Right Permission with CGI
by whio (Beadle) on Jul 20, 2006 at 21:16 UTC
    This should tell you what permissions cgi scripts run as:
    ($name,$passwd,$uid,$gid,$quota,$comment,$gcos,$dir,$shell,$expire) = + getpwuid($>); print "Running as user $name (uid $uid)\n";
    It is fairly common for cgi applications to run under a restricted user account.

      I usually do:

      print "$< - $> - $( - $)\n";

      --
      David Serrano