Networking

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Running Script as interchange user

    1 answers - 391 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Interchange 5.4
    Apache 2
    Postgres
    I have a script to receive Paypal IPNs. I want to run it as the interchange
    user.
    How would I go about this. Ie where would it be placed on the file system
    and what url would be used to call it?
    Thanks in Advance
    Mark
    interchange-users mailing list
    interchange-users (AT) icdevgroup (DOT) org
  • No.1 | | 963 bytes | |

    Mark wrote:
    Interchange 5.4
    Apache 2
    Postgres

    I have a script to receive Paypal IPNs. I want to run it as the interchange
    user.

    How would I go about this. Ie where would it be placed on the file system
    and what url would be used to call it?

    Hi, Mark!

    You might find that it's easier to avoid re-inventing the wheel and keep
    your scripts inside Interchange. You could use a regular page, or an
    action map, or any number of other methods. Then you don't have to worry
    so much about some CGI compromising your catalog.

    If you _really_ wish to use an external script, an important question
    is, what does it need to access? I can think of many ways to give
    privileges to your script. For one, if you have installed apache/perl
    with suid capabilities, you can make the script owned by the Interchange
    user and set its SUID bit:

    $ chmod 4655 myscript.cgi

    Good luck,

    JT

Re: Running Script as interchange user


max 4000 letters.
Your nickname that display:
In order to stop the spam: 9 + 9 =
QUESTION ON "Networking"

EMSDN.COM