getting php to run as another user?

From: cool (coo_at_goontrytospamme.dk)
Date: 09/24/04

  • Next message: Craig: "Re: mysql_fetch_array or mysql_fetch_assoc"
    Date: Fri, 24 Sep 2004 08:25:55 +0200
    
    

    I have a task I need to perform but am not sure the best way to do it, so
    I hope someone out there can give me a tip.

    I need to have my PHP script move uploaded files from the server where the
    php scripts are (Linux, with Apache 2 and PHP 4.2.2), to another machine,
    which is a Windows machine. Our Windows system administrator will set up
    a user named "george" or something, who will have the permission to write
    files to the target directories on the windows machine.
    But PHP running as an Apache module runs as user "apache"
    (this is what I set up apache to call itself). I don't wish to
    change my httpd configuration to have apache run as "george",
    so how do I get PHP to run its script as "george" in order to
    be allowed to move the files to the windows machine?

    Thanks!

    Steve, Denmark


  • Next message: Craig: "Re: mysql_fetch_array or mysql_fetch_assoc"

    Relevant Pages