Re: getting php to run as another user?
From: Nikolai Chuvakhin (nc_at_iname.com)
Date: 09/24/04
- Next message: Ehtor: "Re: image resize"
- Previous message: Craig Keightley: "Number question"
- In reply to: cool: "getting php to run as another user?"
- Next in thread: coolsti: "Re: getting php to run as another user?"
- Reply: coolsti: "Re: getting php to run as another user?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Sep 2004 08:08:19 -0700
cool <coo@goontrytospamme.dk> wrote in message
news:<pan.2004.09.24.06.25.54.347689@goontrytospamme.dk>...
>
> 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.
OK, but what is the nature of the network connection between the two
machines? It seems your options are FTP (PHP has support for it) and
SMB, aka Windows networking (if you can activate smbclient on your
Linux machine, you will be able to log into the Windows machine with
a user name and password).
> But PHP running as an Apache module runs as user "apache"
> (this is what I set up apache to call itself).
It doesn't matter. The Windows machine has its own authorization
mechanism, independent from that on the Linux machine. You need
to figure out which protocol you will use for the transfer (FTP
or SMB, as suggested above, or maybe something else), and act
accordingly.
Cheers,
NC
- Next message: Ehtor: "Re: image resize"
- Previous message: Craig Keightley: "Number question"
- In reply to: cool: "getting php to run as another user?"
- Next in thread: coolsti: "Re: getting php to run as another user?"
- Reply: coolsti: "Re: getting php to run as another user?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|