Here it is:

gcc -o test.cgi test.c:
#include <stdio.h>

main() {
   printf("content-type: text/plain\n\nTest output\n");
   return 0;
}

From monkey.conf:
[HANDLERS]
    # CGI
    # ===
    Match /cgi-bin/.*\.cgi cgi

On 01/07/2016 07:23 AM, Eduardo Silva wrote:
As I am not able to reproduce the problem, would you please provide your test.cgi content and the info of your [HANDLER] from monkey.conf ?,

On Thu, Jan 7, 2016 at 9:19 AM, cspub <[email protected] <mailto:[email protected]>> wrote:

    Hi Eduardo,

    Yes, launched as root.  Works great in 1.6.6.  Fails in 1.6.7.

    $ grep 'User ' monkey-1.6.*/build/conf/monkey.conf
    monkey-1.6.6/build/conf/monkey.conf:    User carl
    monkey-1.6.7/build/conf/monkey.conf:    User carl
    $ ls -l /home/web/rebol.com/html/cgi-bin/test.cgi
    <http://rebol.com/html/cgi-bin/test.cgi>
    -rwxr-xr-x 1 carl carl 134 Dec 26 23:05
    /home/web/rebol.com/html/cgi-bin/test.cgi
    <http://rebol.com/html/cgi-bin/test.cgi>

    -Carl


    On 01/07/2016 06:52 AM, Eduardo Silva wrote:
    Hi,

    The "Forbidden" error usually happens because the "effective
    user" of the running process of Monkey do not have access to read
    and execute the script in the given path. If you are starting
    Monkey as root make sure to validate to which user he is
    switching (per monkey.conf User directive).

    Please provide the output of the following commands:

    1. $ cat /path/to/monkey/conf/monkey.conf | grep User
    2. $ ls -l /path/to/cgi-bin/test.cgi

    thanks

    On Thu, Jan 7, 2016 at 8:45 AM, cspub <[email protected]
    <mailto:[email protected]>> wrote:

        Upgraded to Monkey 1.6.7 from 1.6.6, and cgi-bin stopped working.

        Error log now shows:

        xx.xx.xx.xx - [07/Jan/2016 13:53:02 +0000] [error 403]
        Forbidden /cgi-bin/test.cgi

        Conf files are the same, other than the minor change to use
        1.6.7.

        Did I miss something?

        -cs

        PS: I tried using slack.monkey-project.com
        <http://slack.monkey-project.com>, but the "Get my invite"
        button does not work (from chromium browser). They should fix
        that.
        _______________________________________________
        Monkey mailing list
        [email protected]
        <mailto:[email protected]>
        http://lists.monkey-project.com/listinfo/monkey




-- Eduardo Silva
    http://edsiper.linuxchile.cl
    http://monkey-project.com




--
Eduardo Silva
http://edsiper.linuxchile.cl
http://monkey-project.com

_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to